PersistentEntityInformation
.@Deprecated public class PersistableEntityInformation<T extends Persistable<ID>,ID> extends AbstractEntityInformation<T,ID>
EntityMetadata
that assumes the entity handled implements Persistable
and uses
Persistable.isNew()
for the AbstractEntityInformation.isNew(Object)
check.Constructor and Description |
---|
PersistableEntityInformation(Class<T> domainClass)
Deprecated.
Creates a new
PersistableEntityInformation . |
Modifier and Type | Method and Description |
---|---|
ID |
getId(T entity)
Deprecated.
Returns the id of the given entity or null if none can be obtained.
|
Class<ID> |
getIdType()
Deprecated.
Returns the type of the id of the entity.
|
boolean |
isNew(T entity)
Deprecated.
Returns whether the given entity is considered to be new.
|
getJavaType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRequiredId
public PersistableEntityInformation(Class<T> domainClass)
PersistableEntityInformation
.domainClass
- public boolean isNew(T entity)
EntityInformation
isNew
in interface EntityInformation<T extends Persistable<ID>,ID>
isNew
in class AbstractEntityInformation<T extends Persistable<ID>,ID>
entity
- must never be null@Nullable public ID getId(T entity)
EntityInformation
entity
- must never be nullpublic Class<ID> getIdType()
EntityInformation
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.