org.springframework.data.repository.core.support
Class PersistentEntityInformation<T,ID extends Serializable>
java.lang.Object
org.springframework.data.repository.core.support.AbstractEntityInformation<T,ID>
org.springframework.data.repository.core.support.PersistentEntityInformation<T,ID>
- All Implemented Interfaces:
- EntityInformation<T,ID>, EntityMetadata<T>
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.
- Author:
- Oliver Gierke
|
Method Summary |
ID |
getId(T entity)
Returns the id of the given entity. |
Class<ID> |
getIdType()
Returns the type of the id of the entity. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistentEntityInformation
public PersistentEntityInformation(PersistentEntity<T,?> entity)
- Creates a new
PersistableEntityInformation for the given PersistentEntity.
- Parameters:
entity - must not be null.
getId
public ID getId(T entity)
- Description copied from interface:
EntityInformation
- Returns the id of the given entity.
- Parameters:
entity - must never be null
- Returns:
getIdType
public Class<ID> getIdType()
- Description copied from interface:
EntityInformation
- Returns the type of the id of the entity.
- Returns:
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.