|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MetadataUtil
The framework uses an implementation of this interface to introspect the objects and relationships maintained by the JPA provider. This interface provides a layer of abstraction between the framework and the underlying ORM or JPA provider (ex. Hibernate). By switching out the implementation of this interface, the framework should be able to be used with different JPA providers.
| Method Summary | ||
|---|---|---|
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. |
|
|
getUnproxiedClass(java.lang.Class<?> klass)
Return the actual entity class registered with the persistence provider. |
|
|
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. |
|
| Method Detail |
|---|
java.io.Serializable getId(java.lang.Object object)
boolean isId(java.lang.Class<?> rootClass,
java.lang.String propertyPath)
Metadata get(java.lang.Class<?> klass)
java.lang.IllegalArgumentException - if the class is not a Hibernate entity.
Metadata get(java.lang.Class<?> rootEntityClass,
java.lang.String propertyPath)
java.lang.IllegalArgumentException - if the root class is not a Hibernate entity.
PropertyNotFoundException - if the class does not have the given property.<T> java.lang.Class<T> getUnproxiedClass(java.lang.Class<?> klass)
<T> java.lang.Class<T> getUnproxiedClass(java.lang.Object entity)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||