|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.repository.core.support.DelegatingEntityInformation<T,ID>
public class DelegatingEntityInformation<T,ID extends Serializable>
Useful base class to implement custom EntityInformation
s and delegate execution of standard methods from
EntityInformation
to a special implementation.
Constructor Summary | |
---|---|
DelegatingEntityInformation(EntityInformation<T,ID> delegate)
Creates a new DelegatingEntityInformation delegating method invocations to the given
EntityInformation . |
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. |
Class<T> |
getJavaType()
Returns the actual domain class type. |
boolean |
isNew(T entity)
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 |
Constructor Detail |
---|
public DelegatingEntityInformation(EntityInformation<T,ID> delegate)
DelegatingEntityInformation
delegating method invocations to the given
EntityInformation
.
delegate
- Method Detail |
---|
public Class<T> getJavaType()
EntityMetadata
getJavaType
in interface EntityMetadata<T>
public boolean isNew(T entity)
EntityInformation
isNew
in interface EntityInformation<T,ID extends Serializable>
entity
- must never be null
public ID getId(T entity)
EntityInformation
getId
in interface EntityInformation<T,ID extends Serializable>
entity
- must never be null
public Class<ID> getIdType()
EntityInformation
getIdType
in interface EntityInformation<T,ID extends Serializable>
|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |