public class PersistentEntityInformation<T,ID> extends AbstractEntityInformation<T,ID>
EntityInformation implementation that uses a PersistentEntity to obtain id type information and uses
a IdentifierAccessor 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 or null if none can be obtained.
|
Class<ID> |
getIdType()
Returns the type of the id of the entity.
|
getJavaType, isNewclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequiredIdpublic PersistentEntityInformation(PersistentEntity<T,?> entity)
PersistableEntityInformation for the given PersistentEntity.entity - must not be null.@Nullable public ID getId(T entity)
EntityInformationentity - must never be nullpublic Class<ID> getIdType()
EntityInformationCopyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.