public class PersistentEntityInformation<T,ID extends Serializable> extends AbstractEntityInformation<T,ID>
EntityInformation implementation that uses a PersistentEntity to obtain id type information and uses
a BeanWrapper to access the property value if requested.| Constructor and Description |
|---|
PersistentEntityInformation(PersistentEntity<T,?> entity)
Creates a new
PersistableEntityInformation for the given PersistentEntity. |
| Modifier and Type | Method and Description |
|---|---|
ID |
getId(T entity)
Returns the id of the given entity.
|
Class<ID> |
getIdType()
Returns the type of the id of the entity.
|
getJavaType, isNewpublic PersistentEntityInformation(PersistentEntity<T,?> entity)
PersistableEntityInformation for the given PersistentEntity.entity - must not be null.public ID getId(T entity)
EntityInformationentity - must never be nullpublic Class<ID> getIdType()
EntityInformationCopyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.