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>, KeyValuePersistentEntity<T,P>, org.springframework.data.mapping.model.MutablePersistentEntity<T,P>, org.springframework.data.mapping.PersistentEntity<T,P>

public class BasicKeyValuePersistentEntity<T,P extends KeyValuePersistentProperty<P>> extends org.springframework.data.mapping.model.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

    Constructors
    Constructor
    Description
    BasicKeyValuePersistentEntity(org.springframework.data.util.TypeInformation<T> information)
     
    BasicKeyValuePersistentEntity(org.springframework.data.util.TypeInformation<T> information, KeySpaceResolver keySpaceResolver)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the keySpace a given entity assigns to.

    Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity

    addAssociation, addPersistentProperty, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEvaluationContext, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, returnPropertyIfBetterIdPropertyCandidateOrNull, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verify

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator

    Methods inherited from interface org.springframework.data.mapping.model.MutablePersistentEntity

    addAssociation, addPersistentProperty, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verify

    Methods inherited from interface org.springframework.data.mapping.PersistentEntity

    doWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
  • Constructor Details

    • BasicKeyValuePersistentEntity

      public BasicKeyValuePersistentEntity(org.springframework.data.util.TypeInformation<T> information)
      Parameters:
      information - must not be null.
      Since:
      3.1
    • BasicKeyValuePersistentEntity

      public BasicKeyValuePersistentEntity(org.springframework.data.util.TypeInformation<T> information, @Nullable KeySpaceResolver keySpaceResolver)
      Parameters:
      information - must not be null.
      keySpaceResolver - can be null.
  • Method Details