public class JPAAnnotationMetadataUtil extends java.lang.Object implements MetadataUtil
Constructor and Description |
---|
JPAAnnotationMetadataUtil() |
Modifier and Type | Method and Description |
---|---|
Metadata |
get(java.lang.Class<?> klass)
Get the Metadata for an entity class.
|
Metadata |
get(java.lang.Class<?> rootEntityClass,
java.lang.String propertyPath)
Get the Metadata for a property of an entity class.
|
java.io.Serializable |
getId(java.lang.Object object)
Get the value of the ID property of an entity.
|
<T> java.lang.Class<T> |
getUnproxiedClass(java.lang.Class<?> klass)
Return the actual entity class registered with the persistence provider.
|
<T> java.lang.Class<T> |
getUnproxiedClass(java.lang.Object entity)
Return the actual entity class registered with the persistence provider.
|
boolean |
isId(java.lang.Class<?> rootClass,
java.lang.String propertyPath)
Return true if the property at the given property path is the id of some
entity.
|
public Metadata get(java.lang.Class<?> klass) throws java.lang.IllegalArgumentException
MetadataUtil
get
in interface MetadataUtil
java.lang.IllegalArgumentException
- if the class is not a Hibernate entity.public Metadata get(java.lang.Class<?> rootEntityClass, java.lang.String propertyPath) throws java.lang.IllegalArgumentException
MetadataUtil
get
in interface MetadataUtil
java.lang.IllegalArgumentException
- if the root class is not a Hibernate entity.public java.io.Serializable getId(java.lang.Object object)
MetadataUtil
getId
in interface MetadataUtil
public boolean isId(java.lang.Class<?> rootClass, java.lang.String propertyPath)
MetadataUtil
isId
in interface MetadataUtil
public <T> java.lang.Class<T> getUnproxiedClass(java.lang.Class<?> klass)
MetadataUtil
getUnproxiedClass
in interface MetadataUtil
public <T> java.lang.Class<T> getUnproxiedClass(java.lang.Object entity)
MetadataUtil
getUnproxiedClass
in interface MetadataUtil