Uses of Interface
org.springframework.data.mapping.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
Modifier and TypeInterfaceDescriptioninterface
EntityConverter<E extends PersistentEntity<?,
P>, P extends PersistentProperty<P>, T, S> CombinedEntityReader
andEntityWriter
and add the ability to access aMappingContext
andConversionService
.ModifierConstructorDescriptionDefaultTypeMapper
(TypeAliasAccessor<S> accessor, MappingContext<? extends PersistentEntity<?, ?>, ?> mappingContext, List<? extends TypeInformationMapper> additionalMappers) Creates a newDefaultTypeMapper
using the givenTypeAliasAccessor
,MappingContext
and additionalTypeInformationMapper
s.MappingContextTypeInformationMapper
(MappingContext<? extends PersistentEntity<?, ?>, ?> mappingContext) Creates aMappingContextTypeInformationMapper
from the givenMappingContext
. -
Uses of PersistentEntity in org.springframework.data.mapping
Modifier and TypeMethodDescriptionPersistentProperty.getOwner()
Returns thePersistentEntity
owning the currentPersistentProperty
.ModifierConstructorDescriptionParameter
(String name, TypeInformation<T> type, Annotation[] annotations, PersistentEntity<T, P> entity) Creates a newPreferredConstructor.Parameter
with the given name,TypeInformation
as well as an array ofAnnotation
s. -
Uses of PersistentEntity in org.springframework.data.mapping.context
Modifier 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
.Modifier 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.Modifier and TypeMethodDescriptionOptional<PersistentEntity<?,
? extends PersistentProperty<?>>> PersistentEntities.getPersistentEntity
(Class<?> type) Returns thePersistentEntity
for the given type.Iterator<PersistentEntity<?,
? extends PersistentProperty<?>>> PersistentEntities.iterator()
Modifier 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
Modifier and TypeInterfaceDescriptioninterface
MutablePersistentEntity<T,
P extends PersistentProperty<P>> Interface capturing mutator methods forPersistentEntity
s.Modifier and TypeClassDescriptionclass
BasicPersistentEntity<T,
P extends PersistentProperty<P>> Simple value object to capture information ofPersistentEntity
s.Modifier 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.Modifier 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
.ModifierConstructorDescriptionAbstractPersistentProperty
(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
Modifier and TypeMethodDescriptionPersistentEntity<?,
?> RepositoryFactoryBeanSupport.getPersistentEntity()
PersistentEntity<?,
?> RepositoryFactoryInformation.getPersistentEntity()
Returns thePersistentEntity
managed by the underlying repository.ModifierConstructorDescriptionPersistentEntityInformation
(PersistentEntity<T, ? extends PersistentProperty<?>> persistentEntity) -
Uses of PersistentEntity in org.springframework.data.repository.support
Modifier and TypeMethodDescriptionPersistentEntity<?,
?> Repositories.getPersistentEntity
(Class<?> domainClass) Returns thePersistentEntity
for the given domain class.