Class PersistentEntityInformation<T,ID>
java.lang.Object
org.springframework.data.repository.core.support.PersistentEntityInformation<T,ID>
- All Implemented Interfaces:
EntityInformation<T,,ID> EntityMetadata<T>
EntityInformation implementation that uses a PersistentEntity to obtain id type information and uses
a IdentifierAccessor to access the property value if requested.- Author:
- Oliver Gierke, Christoph Strobl
-
Constructor Summary
ConstructorsConstructorDescriptionPersistentEntityInformation(PersistentEntity<T, ? extends PersistentProperty<?>> persistentEntity) -
Method Summary
Modifier and TypeMethodDescriptionReturns the id of the given entity or null if none can be obtained.Returns the type of the id of the entity.Returns the actual domain class type.booleanReturns whether the given entity is considered to be new.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.repository.core.EntityInformation
getRequiredId
-
Constructor Details
-
PersistentEntityInformation
public PersistentEntityInformation(PersistentEntity<T, ? extends PersistentProperty<?>> persistentEntity)
-
-
Method Details
-
isNew
Description copied from interface:EntityInformationReturns whether the given entity is considered to be new.- Specified by:
isNewin interfaceEntityInformation<T,ID> - Parameters:
entity- must never be null- Returns:
-
getId
Description copied from interface:EntityInformationReturns the id of the given entity or null if none can be obtained.- Specified by:
getIdin interfaceEntityInformation<T,ID> - Parameters:
entity- must never be null- Returns:
-
getJavaType
Description copied from interface:EntityMetadataReturns the actual domain class type.- Specified by:
getJavaTypein interfaceEntityMetadata<T>- Returns:
-
getIdType
Description copied from interface:EntityInformationReturns the type of the id of the entity.- Specified by:
getIdTypein interfaceEntityInformation<T,ID> - Returns:
-