Uses of Interface
org.springframework.data.mapping.PersistentEntity
Packages that use PersistentEntity
Package
Description
General purpose conversion framework to read objects from a data store abstraction and write it back.
Base package for the mapping subsystem.
Mapping context API and implementation base classes.
Core implementation of the mapping subsystem's model.
Base classes to implement repositories for various data stores.
Support classes for integration of the repository programming model with 3rd party frameworks.
-
Uses of PersistentEntity in org.springframework.data.convert
Classes in org.springframework.data.convert with type parameters of type PersistentEntityModifier and TypeInterfaceDescriptioninterface
EntityConverter<E extends PersistentEntity<?,
P>, P extends PersistentProperty<P>, T, S> CombinedEntityReader
andEntityWriter
and add the ability to access aMappingContext
andConversionService
.Constructor parameters in org.springframework.data.convert with type arguments of type PersistentEntityModifierConstructorDescriptionDefaultTypeMapper
(TypeAliasAccessor<S> accessor, MappingContext<? extends PersistentEntity<?, ?>, ?> mappingContext, List<? extends TypeInformationMapper> additionalMappers) Creates a newDefaultTypeMapper
using the givenTypeAliasAccessor
,MappingContext
and additionalTypeInformationMapper
s.DtoInstantiatingConverter
(Class<?> dtoType, MappingContext<? extends PersistentEntity<?, ?>, ? extends PersistentProperty<?>> context, EntityInstantiators instantiators) Create a newConverter
to instantiate DTOs.MappingContextTypeInformationMapper
(MappingContext<? extends PersistentEntity<?, ?>, ?> mappingContext) Creates aMappingContextTypeInformationMapper
from the givenMappingContext
. -
Uses of PersistentEntity in org.springframework.data.mapping
Methods in org.springframework.data.mapping that return PersistentEntityModifier and TypeMethodDescriptionPersistentProperty.getOwner()
Returns thePersistentEntity
owning the currentPersistentProperty
.Constructors in org.springframework.data.mapping with parameters of type PersistentEntityModifierConstructorDescriptionParameter
(String name, TypeInformation<T> type, Annotation[] annotations, PersistentEntity<T, P> entity) -
Uses of PersistentEntity in org.springframework.data.mapping.context
Classes in org.springframework.data.mapping.context with type parameters of type PersistentEntityModifier and TypeInterfaceDescriptioninterface
MappingContext<E extends PersistentEntity<?,
P>, P extends PersistentProperty<P>> This interface defines the overall context including all known PersistentEntity instances and methods to obtain instances on demand. it is used internally to establish associations between entities and also at runtime to obtain entities by name.class
MappingContextEvent<E extends PersistentEntity<?,
P>, P extends PersistentProperty<P>> Base implementation of anApplicationEvent
refering to aPersistentEntity
.Methods in org.springframework.data.mapping.context that return PersistentEntityModifier and TypeMethodDescriptionPersistentEntity<?,
?> PersistentEntities.getEntityUltimatelyReferredToBy
(PersistentProperty<?> property) Returns thePersistentEntity
the givenPersistentProperty
refers to in case it's an association.PersistentEntity<?,
? extends PersistentProperty<?>> PersistentEntities.getRequiredPersistentEntity
(Class<?> type) Returns thePersistentEntity
for the given type.Methods in org.springframework.data.mapping.context that return types with arguments of type PersistentEntityModifier and TypeMethodDescriptionOptional<PersistentEntity<?,
? extends PersistentProperty<?>>> PersistentEntities.getPersistentEntity
(Class<?> type) Returns thePersistentEntity
for the given type.Iterator<PersistentEntity<?,
? extends PersistentProperty<?>>> PersistentEntities.iterator()
Method parameters in org.springframework.data.mapping.context with type arguments of type PersistentEntityModifier and TypeMethodDescription<T> Optional<T>
PersistentEntities.mapOnContext
(Class<?> type, BiFunction<MappingContext<?, ? extends PersistentProperty<?>>, PersistentEntity<?, ?>, T> combiner) Executes the givenBiFunction
on the givenMappingContext
andPersistentEntity
based on the given type. -
Uses of PersistentEntity in org.springframework.data.mapping.model
Subinterfaces of PersistentEntity in org.springframework.data.mapping.modelModifier and TypeInterfaceDescriptioninterface
MutablePersistentEntity<T,
P extends PersistentProperty<P>> Interface capturing mutator methods forPersistentEntity
s.Classes in org.springframework.data.mapping.model that implement PersistentEntityModifier and TypeClassDescriptionclass
BasicPersistentEntity<T,
P extends PersistentProperty<P>> Simple value object to capture information ofPersistentEntity
s.Methods in org.springframework.data.mapping.model with type parameters of type PersistentEntityModifier and TypeMethodDescription<T,
E extends PersistentEntity<? extends T, P>, P extends PersistentProperty<P>>
TEntityInstantiator.createInstance
(E entity, ParameterValueProvider<P> provider) Creates a new instance of the given entity using the given source to pull data from.Methods in org.springframework.data.mapping.model that return PersistentEntityMethods in org.springframework.data.mapping.model with parameters of type PersistentEntityModifier and TypeMethodDescriptionstatic <T,
P extends PersistentProperty<P>>
PreferredConstructor<T,P> PreferredConstructorDiscoverer.discover
(PersistentEntity<T, P> entity) Discovers thePreferredConstructorDiscoverer
for the givenPersistentEntity
.EntityInstantiators.getInstantiatorFor
(PersistentEntity<?, ?> entity) Returns theEntityInstantiator
to be used to create the givenPersistentEntity
.<T> PersistentPropertyAccessor<T>
BeanWrapperPropertyAccessorFactory.getPropertyAccessor
(PersistentEntity<?, ?> entity, T bean) <T> PersistentPropertyAccessor<T>
ClassGeneratingPropertyAccessorFactory.getPropertyAccessor
(PersistentEntity<?, ?> entity, T bean) <T> PersistentPropertyAccessor<T>
InstantiationAwarePropertyAccessorFactory.getPropertyAccessor
(PersistentEntity<?, ?> entity, T bean) <T> PersistentPropertyAccessor<T>
PersistentPropertyAccessorFactory.getPropertyAccessor
(PersistentEntity<?, ?> entity, T bean) boolean
BeanWrapperPropertyAccessorFactory.isSupported
(PersistentEntity<?, ?> entity) boolean
ClassGeneratingPropertyAccessorFactory.isSupported
(PersistentEntity<?, ?> entity) Checks whether an accessor class can be generated.boolean
InstantiationAwarePropertyAccessorFactory.isSupported
(PersistentEntity<?, ?> entity) boolean
PersistentPropertyAccessorFactory.isSupported
(PersistentEntity<?, ?> entity) Returns whether givenPersistentEntity
is supported by thisPersistentPropertyAccessorFactory
.Constructors in org.springframework.data.mapping.model with parameters of type PersistentEntityModifierConstructorDescriptionAbstractPersistentProperty
(Property property, PersistentEntity<?, P> owner, SimpleTypeHolder simpleTypeHolder) AnnotationBasedPersistentProperty
(Property property, PersistentEntity<?, P> owner, SimpleTypeHolder simpleTypeHolder) Creates a newAnnotationBasedPersistentProperty
.IdPropertyIdentifierAccessor
(PersistentEntity<?, ?> entity, Object target) Creates a newIdPropertyIdentifierAccessor
for the givenPersistentEntity
andConvertingPropertyAccessor
.MappingInstantiationException
(PersistentEntity<?, ?> entity, List<Object> arguments, Exception cause) Creates a newMappingInstantiationException
for the givenPersistentEntity
, constructor arguments and the causing exception.PersistentEntityParameterValueProvider
(PersistentEntity<?, P> entity, PropertyValueProvider<P> provider, Object parent) -
Uses of PersistentEntity in org.springframework.data.repository.core.support
Methods in org.springframework.data.repository.core.support that return PersistentEntityModifier and TypeMethodDescriptionPersistentEntity<?,
?> RepositoryFactoryBeanSupport.getPersistentEntity()
PersistentEntity<?,
?> RepositoryFactoryInformation.getPersistentEntity()
Returns thePersistentEntity
managed by the underlying repository.Constructors in org.springframework.data.repository.core.support with parameters of type PersistentEntityModifierConstructorDescriptionPersistentEntityInformation
(PersistentEntity<T, ? extends PersistentProperty<?>> persistentEntity) -
Uses of PersistentEntity in org.springframework.data.repository.support
Methods in org.springframework.data.repository.support that return PersistentEntityModifier and TypeMethodDescriptionPersistentEntity<?,
?> Repositories.getPersistentEntity
(Class<?> domainClass) Returns thePersistentEntity
for the given domain class.