|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.genericdao.search.jpa.JPAAnnotationMetadataUtil
public class JPAAnnotationMetadataUtil
| Constructor Summary | |
|---|---|
JPAAnnotationMetadataUtil()
|
|
| Method Summary | ||
|---|---|---|
Metadata |
get(Class<?> klass)
Get the Metadata for an entity class. |
|
Metadata |
get(Class<?> rootEntityClass,
String propertyPath)
Get the Metadata for a property of an entity class. |
|
Serializable |
getId(Object object)
Get the value of the ID property of an entity. |
|
|
getUnproxiedClass(Class<?> klass)
Return the actual entity class registered with the persistence provider. |
|
|
getUnproxiedClass(Object entity)
Return the actual entity class registered with the persistence provider. |
|
boolean |
isId(Class<?> rootClass,
String propertyPath)
Return true if the property at the given property path is the id of some entity. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JPAAnnotationMetadataUtil()
| Method Detail |
|---|
public Metadata get(Class<?> klass)
throws IllegalArgumentException
MetadataUtil
get in interface MetadataUtilIllegalArgumentException - if the class is not a Hibernate entity.
public Metadata get(Class<?> rootEntityClass,
String propertyPath)
throws IllegalArgumentException
MetadataUtil
get in interface MetadataUtilIllegalArgumentException - if the root class is not a Hibernate entity.public Serializable getId(Object object)
MetadataUtil
getId in interface MetadataUtil
public boolean isId(Class<?> rootClass,
String propertyPath)
MetadataUtil
isId in interface MetadataUtilpublic <T> Class<T> getUnproxiedClass(Class<?> klass)
MetadataUtil
getUnproxiedClass in interface MetadataUtilpublic <T> Class<T> getUnproxiedClass(Object entity)
MetadataUtil
getUnproxiedClass in interface MetadataUtil
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||