public interface MongoPersistentEntity<T> extends MutablePersistentEntity<T,MongoPersistentProperty>
PersistentEntity abstraction.| Modifier and Type | Method and Description |
|---|---|
Collation |
getCollation()
Returns the collation of the entity evaluating a potential SpEL expression within the current context.
|
String |
getCollection()
Returns the collection the entity shall be persisted to.
|
Collection<Object> |
getEncryptionKeyIds() |
String |
getLanguage()
Returns the default language to be used for this entity.
|
ShardKey |
getShardKey()
Get the entities shard key if defined.
|
MongoPersistentProperty |
getTextScoreProperty()
Returns the property holding text score value.
|
default boolean |
hasCollation() |
boolean |
hasTextScoreProperty()
Returns whether the entity has a
TextScore property. |
default boolean |
isSharded() |
default boolean |
isUnwrapped() |
addAssociation, addPersistentProperty, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verifydoWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulationforEach, iterator, spliteratorString getCollection()
String getLanguage()
@Nullable MongoPersistentProperty getTextScoreProperty()
hasTextScoreProperty()boolean hasTextScoreProperty()
TextScore property.TextScore is present.@Nullable Collation getCollation()
default boolean hasCollation()
Collation.ShardKey getShardKey()
ShardKey.none() if not not set.default boolean isSharded()
shard key is sharded.default boolean isUnwrapped()
@Nullable Collection<Object> getEncryptionKeyIds()
Collection if no keyIds specified.
null no Encrypted annotation found.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.