Class BasicKeyValuePersistentEntity<T, P extends KeyValuePersistentProperty<P>>
java.lang.Object
org.springframework.data.mapping.model.BasicPersistentEntity<T,P>
org.springframework.data.keyvalue.core.mapping.BasicKeyValuePersistentEntity<T,P>
- Type Parameters:
T-
- All Implemented Interfaces:
Iterable<P>, Aware, EnvironmentAware, EnvironmentCapable, KeyValuePersistentEntity<T,P>, MutablePersistentEntity<T, P>, PersistentEntity<T, P>
public class BasicKeyValuePersistentEntity<T, P extends KeyValuePersistentProperty<P>>
extends BasicPersistentEntity<T,P>
implements KeyValuePersistentEntity<T,P>
KeyValuePersistentEntity implementation that adds specific meta-data such as the keySpace.- Author:
- Christoph Strobl, Oliver Gierke, Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionBasicKeyValuePersistentEntity(TypeInformation<T> information) BasicKeyValuePersistentEntity(TypeInformation<T> information, @Nullable KeySpaceResolver keySpaceResolver) -
Method Summary
Modifier and TypeMethodDescriptionGet the keySpace a given entity assigns to.Methods inherited from class BasicPersistentEntity
addAssociation, addPersistentProperty, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEnvironment, getEvaluationContext, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getType, getTypeAlias, getTypeInformation, getValueEvaluationContext, getValueEvaluationContext, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, returnPropertyIfBetterIdPropertyCandidateOrNull, setEnvironment, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verifyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EnvironmentAware
setEnvironmentMethods inherited from interface Iterable
forEach, iterator, spliteratorMethods inherited from interface KeyValuePersistentEntity
getRequiredKeySpaceMethods inherited from interface MutablePersistentEntity
addAssociation, addPersistentProperty, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verifyMethods inherited from interface PersistentEntity
doWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
-
Constructor Details
-
BasicKeyValuePersistentEntity
- Parameters:
information- must not be null.- Since:
- 3.1
-
BasicKeyValuePersistentEntity
public BasicKeyValuePersistentEntity(TypeInformation<T> information, @Nullable KeySpaceResolver keySpaceResolver) - Parameters:
information- must not be null.keySpaceResolver- can be null.
-
-
Method Details
-
getKeySpace
Description copied from interface:KeyValuePersistentEntityGet the keySpace a given entity assigns to.- Specified by:
getKeySpacein interfaceKeyValuePersistentEntity<T, P extends KeyValuePersistentProperty<P>>- Returns:
- can be null.
-