Class DelegatingEntityInformation<T,ID>
java.lang.Object
org.springframework.data.repository.core.support.DelegatingEntityInformation<T,ID>
- All Implemented Interfaces:
EntityInformation<T,
,ID> EntityMetadata<T>
Useful base class to implement custom
EntityInformation
s and delegate execution of standard methods from
EntityInformation
to a special implementation.- Author:
- Oliver Gierke
-
Constructor Summary
-
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.boolean
Returns 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, wait
Methods inherited from interface org.springframework.data.repository.core.EntityInformation
getRequiredId
-
Constructor Details
-
DelegatingEntityInformation
-
-
Method Details
-
getJavaType
Description copied from interface:EntityMetadata
Returns the actual domain class type.- Specified by:
getJavaType
in interfaceEntityMetadata<T>
- Returns:
-
isNew
Description copied from interface:EntityInformation
Returns whether the given entity is considered to be new.- Specified by:
isNew
in interfaceEntityInformation<T,
ID> - Parameters:
entity
- must never be null- Returns:
-
getId
Description copied from interface:EntityInformation
Returns the id of the given entity or null if none can be obtained.- Specified by:
getId
in interfaceEntityInformation<T,
ID> - Parameters:
entity
- must never be null- Returns:
-
getIdType
Description copied from interface:EntityInformation
Returns the type of the id of the entity.- Specified by:
getIdType
in interfaceEntityInformation<T,
ID> - Returns:
-