public class DelegatingEntityInformation<T,ID> 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) |
| Modifier and Type | Method and Description |
|---|---|
ID |
getId(T entity)
Returns the id of the given entity or null if none can be obtained.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequiredIdpublic DelegatingEntityInformation(EntityInformation<T,ID> delegate)
public Class<T> getJavaType()
EntityMetadatagetJavaType in interface EntityMetadata<T>public boolean isNew(T entity)
EntityInformationisNew in interface EntityInformation<T,ID>entity - must never be null@Nullable public ID getId(T entity)
EntityInformationgetId in interface EntityInformation<T,ID>entity - must never be nullpublic Class<ID> getIdType()
EntityInformationgetIdType in interface EntityInformation<T,ID>Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.