public class JPAAnnotationMetadataUtil extends Object implements MetadataUtil
| Constructor and Description |
|---|
JPAAnnotationMetadataUtil() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
<T> Class<T> |
getUnproxiedClass(Class<?> klass)
Return the actual entity class registered with the persistence provider.
|
<T> Class<T> |
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.
|
public Metadata get(Class<?> klass) throws IllegalArgumentException
MetadataUtilget in interface MetadataUtilIllegalArgumentException - if the class is not a Hibernate entity.public Metadata get(Class<?> rootEntityClass, String propertyPath) throws IllegalArgumentException
MetadataUtilget in interface MetadataUtilIllegalArgumentException - if the root class is not a Hibernate entity.public Serializable getId(Object object)
MetadataUtilgetId in interface MetadataUtilpublic boolean isId(Class<?> rootClass, String propertyPath)
MetadataUtilisId in interface MetadataUtilpublic <T> Class<T> getUnproxiedClass(Class<?> klass)
MetadataUtilgetUnproxiedClass in interface MetadataUtilpublic <T> Class<T> getUnproxiedClass(Object entity)
MetadataUtilgetUnproxiedClass in interface MetadataUtilCopyright © 2008-2013. All Rights Reserved.