|
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.AbstractEntityInformation<T,ID>
public abstract class AbstractEntityInformation<T,ID extends java.io.Serializable>
Base class for implementations of EntityInformation
. Considers an entity to be new whenever
EntityInformation.getId(Object)
returns null.
Constructor Summary | |
---|---|
AbstractEntityInformation(java.lang.Class<T> domainClass)
Creates a new AbstractEntityInformation from the given domain class. |
Method Summary | |
---|---|
java.lang.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 |
Methods inherited from interface org.springframework.data.repository.core.EntityInformation |
---|
getId, getIdType |
Constructor Detail |
---|
public AbstractEntityInformation(java.lang.Class<T> domainClass)
AbstractEntityInformation
from the given domain class.
domainClass
- Method Detail |
---|
public boolean isNew(T entity)
EntityInformation
isNew
in interface EntityInformation<T,ID extends java.io.Serializable>
entity
- must never be null
public java.lang.Class<T> getJavaType()
EntityMetadata
getJavaType
in interface EntityMetadata<T>
|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |