public interface MongoEntityInformation<T,ID> extends EntityInformation<T,ID>
EntityInformation
.Modifier and Type | Method and Description |
---|---|
Collation |
getCollation()
Return the collation for the entity or null if
not defined . |
String |
getCollectionName()
Returns the name of the collection the entity shall be persisted to.
|
String |
getIdAttribute()
Returns the attribute that the id will be persisted to.
|
default Object |
getVersion(T entity)
Returns the version value for the entity or null if the entity is not
versioned . |
default boolean |
hasCollation()
Returns whether the entity defines a specific collation.
|
default boolean |
isVersioned()
Returns whether the entity uses optimistic locking.
|
getId, getIdType, getRequiredId, isNew
getJavaType
String getCollectionName()
String getIdAttribute()
default boolean isVersioned()
Version
property.@Nullable default Object getVersion(T entity)
versioned
.entity
- must not be nulldefault boolean hasCollation()
@Nullable Collation getCollation()
not defined
.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.