public class DelegatingEntityInformation<T,ID extends Serializable> extends Object implements EntityInformation<T,ID>
EntityInformations and delegate execution of standard methods from
EntityInformation to a special implementation.| Constructor and Description |
|---|
DelegatingEntityInformation(EntityInformation<T,ID> delegate)
Creates a new
DelegatingEntityInformation delegating method invocations to the given
EntityInformation. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public DelegatingEntityInformation(EntityInformation<T,ID> delegate)
DelegatingEntityInformation delegating method invocations to the given
EntityInformation.delegate - public Class<T> getJavaType()
EntityMetadatagetJavaType in interface EntityMetadata<T>public boolean isNew(T entity)
EntityInformationisNew in interface EntityInformation<T,ID extends Serializable>entity - must never be nullpublic ID getId(T entity)
EntityInformationgetId in interface EntityInformation<T,ID extends Serializable>entity - must never be nullpublic Class<ID> getIdType()
EntityInformationgetIdType in interface EntityInformation<T,ID extends Serializable>Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.