Package | Description |
---|---|
org.springframework.data.auditing |
General support for entity auditing.
|
org.springframework.data.convert |
General purpose conversion framework to read objects from a data store abstraction and write it back.
|
org.springframework.data.mapping |
Base package for the mapping subsystem.
|
org.springframework.data.mapping.context |
Mapping context API and implementation base classes.
|
org.springframework.data.mapping.model |
Core implementation of the mapping subsystem's model.
|
org.springframework.data.repository.core.support |
Base classes to implement repositories for various data stores.
|
Constructor and Description |
---|
AuditingHandler(MappingContext<? extends PersistentEntity<?,?>,? extends PersistentProperty<?>> mappingContext)
Deprecated.
use
AuditingHandler(PersistentEntities) instead. |
IsNewAwareAuditingHandler(MappingContext<? extends PersistentEntity<?,?>,? extends PersistentProperty<?>> mappingContext)
Deprecated.
use
IsNewAwareAuditingHandler(PersistentEntities) instead. |
Modifier and Type | Interface and Description |
---|---|
interface |
EntityConverter<E extends PersistentEntity<?,P>,P extends PersistentProperty<P>,T,S>
Combined
EntityReader and EntityWriter and add the ability to access a MappingContext and
ConversionService . |
interface |
PropertyValueConverter<DV,SV,C extends ValueConversionContext<? extends PersistentProperty<?>>>
PropertyValueConverter provides a symmetric way of converting certain properties from domain to
store-specific values. |
static class |
PropertyValueConverter.FunctionPropertyValueConverter<DV,SV,P extends PersistentProperty<P>>
A
PropertyValueConverter that delegates conversion to the given BiFunction s. |
class |
PropertyValueConverterRegistrar<P extends PersistentProperty<P>>
Configuration class used to register a
PropertyValueConverter with
a SimplePropertyValueConverterRegistry that can be used in PropertyValueConversions . |
static class |
PropertyValueConverterRegistrar.ReadingConverterRegistrationBuilder<T,S,R,P extends PersistentProperty<P>>
Helper class used to build a fluent API to register how to read a database value into a domain object property.
|
static class |
PropertyValueConverterRegistrar.WritingConverterRegistrationBuilder<T,S,P extends PersistentProperty<P>>
Helper class used to build up a fluent registration API starting with writing.
|
class |
SimplePropertyValueConverterRegistry<P extends PersistentProperty<P>>
A registry of property specific
value convertes that may be used to convert only
specific properties/values of an object. |
interface |
ValueConversionContext<P extends PersistentProperty<P>>
The
ValueConversionContext provides access to the store-specific PersistentProperty and allows to
call the store-default conversion through the read/write methods. |
interface |
ValueConverterRegistry<P extends PersistentProperty<P>>
A registry of
property-specific value converters
to convert only specific properties/values of an object. |
Modifier and Type | Method and Description |
---|---|
<T,E extends PersistentEntity<? extends T,P>,P extends PersistentProperty<P>> |
KotlinClassGeneratingEntityInstantiator.createInstance(E entity,
ParameterValueProvider<P> provider)
Deprecated.
|
<T,E extends PersistentEntity<? extends T,P>,P extends PersistentProperty<P>> |
ClassGeneratingEntityInstantiator.createInstance(E entity,
ParameterValueProvider<P> provider)
Deprecated.
|
<T,E extends PersistentEntity<? extends T,P>,P extends PersistentProperty<P>> |
ReflectionEntityInstantiator.createInstance(E entity,
ParameterValueProvider<P> provider)
Deprecated.
|
<DV,SV,P extends PersistentProperty<P>,D extends ValueConversionContext<P>> |
SimplePropertyValueConversions.getValueConverter(P property) |
<DV,SV,P extends PersistentProperty<P>,VCC extends ValueConversionContext<P>> |
PropertyValueConversions.getValueConverter(P property)
|
<P extends PersistentProperty<P>,VCC extends ValueConversionContext<P>> |
PropertyValueConversionService.read(Object value,
P property,
VCC context)
Convert a value from its store-native representation into its domain-specific type.
|
static <P extends PersistentProperty<P>> |
ValueConverterRegistry.simple()
Obtain a simple
ValueConverterRegistry . |
static <P extends PersistentProperty<P>> |
PropertyValueConversions.simple(Consumer<PropertyValueConverterRegistrar<P>> config)
Helper method used to create a
PropertyValueConversions instance with the configured
converters provided by the callback . |
<P extends PersistentProperty<P>,VCC extends ValueConversionContext<P>> |
PropertyValueConversionService.write(Object value,
P property,
VCC context)
Convert a value from its domain-specific value into its store-native representation.
|
Modifier and Type | Method and Description |
---|---|
default <DV,SV,P extends ValueConversionContext<?>> |
PropertyValueConverterFactory.getConverter(PersistentProperty<?> property)
Get the
PropertyValueConverter applicable for the given PersistentProperty . |
boolean |
PropertyValueConversionService.hasConverter(PersistentProperty<?> property)
Return true if a
PropertyValueConverter is registered for the PersistentProperty . |
boolean |
PropertyValueConversions.hasValueConverter(PersistentProperty<?> property)
|
boolean |
SimplePropertyValueConversions.hasValueConverter(PersistentProperty<?> property)
Determines whether a
PropertyValueConverter has been registered for
the given property . |
Constructor and Description |
---|
DtoInstantiatingConverter(Class<?> dtoType,
MappingContext<? extends PersistentEntity<?,?>,? extends PersistentProperty<?>> context,
EntityInstantiators instantiator)
Create a new
Converter to instantiate DTOs. |
Modifier and Type | Class and Description |
---|---|
class |
Association<P extends PersistentProperty<P>>
Value object to capture
Association s. |
interface |
AssociationHandler<P extends PersistentProperty<P>>
Callback interface to implement functionality to be applied to a collection of
Association s. |
class |
FactoryMethod<T,P extends PersistentProperty<P>>
Value object to encapsulate the factory method to be used when mapping persistent data to objects.
|
interface |
InstanceCreatorMetadata<P extends PersistentProperty<P>>
Metadata describing a mechanism to create instances of persistent types.
|
class |
Parameter<T,P extends PersistentProperty<P>>
Value object to represent constructor parameters.
|
interface |
PersistentEntity<T,P extends PersistentProperty<P>>
Represents a persistent entity.
|
interface |
PersistentProperty<P extends PersistentProperty<P>> |
interface |
PersistentPropertyPath<P extends PersistentProperty<P>>
Abstraction of a path of
PersistentProperty s. |
interface |
PersistentPropertyPaths<T,P extends PersistentProperty<P>>
A wrapper for a collection of
PersistentPropertyPath s. |
class |
PreferredConstructor<T,P extends PersistentProperty<P>>
Value object to encapsulate the constructor to be used when mapping persistent data to objects.
|
interface |
PropertyHandler<P extends PersistentProperty<P>>
Callback interface to do something with all plain
PersistentProperty instances except associations
and transient properties. |
Modifier and Type | Method and Description |
---|---|
void |
SimplePropertyHandler.doWithPersistentProperty(PersistentProperty<?> property)
Handle the given
PersistentProperty . |
Object |
PersistentPropertyAccessor.getProperty(PersistentProperty<?> property)
Returns the value of the given
PersistentProperty of the underlying bean instance. |
default boolean |
PersistentEntity.isConstructorArgument(PersistentProperty<?> property)
Deprecated.
since 3.0, use
PersistentEntity.isCreatorArgument(PersistentProperty) instead. |
boolean |
PreferredConstructor.isConstructorParameter(PersistentProperty<?> property)
Deprecated.
since 3.0, use
InstanceCreatorMetadataSupport.isCreatorParameter(PersistentProperty) instead. |
boolean |
PersistentEntity.isCreatorArgument(PersistentProperty<?> property)
Returns whether the given
PersistentProperty is referred to by a creator argument of the
PersistentEntity . |
boolean |
InstanceCreatorMetadata.isCreatorParameter(PersistentProperty<?> property)
Check whether the given
PersistentProperty is being used as creator parameter. |
boolean |
PersistentEntity.isIdProperty(PersistentProperty<?> property)
Returns whether the given
PersistentProperty is the id property of the entity. |
boolean |
PersistentEntity.isVersionProperty(PersistentProperty<?> property)
Returns whether the given
PersistentProperty is the version property of the entity. |
boolean |
AccessOptions.SetOptions.propagate(PersistentProperty<?> property)
Returns whether the given property is supposed to be propagated, i.e. if values for it are supposed to be set at
all.
|
TraversalContext |
TraversalContext.registerCollectionHandler(PersistentProperty<?> property,
Function<? super Collection<?>,Object> handler)
Registers a
Function to handle Collection values for the given property. |
AccessOptions.GetOptions |
AccessOptions.GetOptions.registerCollectionHandler(PersistentProperty<?> property,
Function<? super Collection<?>,Object> handler)
Registers a
Function to handle Collection values for the given property. |
<T> TraversalContext |
TraversalContext.registerHandler(PersistentProperty<?> property,
Class<T> type,
Function<? super T,Object> handler)
Registers the given
Function to post-process values obtained for the given PersistentProperty for
the given type. |
<T> AccessOptions.GetOptions |
AccessOptions.GetOptions.registerHandler(PersistentProperty<?> property,
Class<T> type,
Function<? super T,Object> handler)
Registers the given
Function to post-process values obtained for the given PersistentProperty for
the given type. |
TraversalContext |
TraversalContext.registerHandler(PersistentProperty<?> property,
Function<Object,Object> handler)
Registers a
Function to post-process values for the given property. |
AccessOptions.GetOptions |
AccessOptions.GetOptions.registerHandler(PersistentProperty<?> property,
Function<Object,Object> handler)
Registers a
Function to post-process values for the given property. |
TraversalContext |
TraversalContext.registerListHandler(PersistentProperty<?> property,
Function<? super List<?>,Object> handler)
|
AccessOptions.GetOptions |
AccessOptions.GetOptions.registerListHandler(PersistentProperty<?> property,
Function<? super List<?>,Object> handler)
|
TraversalContext |
TraversalContext.registerMapHandler(PersistentProperty<?> property,
Function<? super Map<?,?>,Object> handler)
|
AccessOptions.GetOptions |
AccessOptions.GetOptions.registerMapHandler(PersistentProperty<?> property,
Function<? super Map<?,?>,Object> handler)
|
TraversalContext |
TraversalContext.registerSetHandler(PersistentProperty<?> property,
Function<? super Set<?>,Object> handler)
|
AccessOptions.GetOptions |
AccessOptions.GetOptions.registerSetHandler(PersistentProperty<?> property,
Function<? super Set<?>,Object> handler)
|
void |
PersistentPropertyAccessor.setProperty(PersistentProperty<?> property,
Object value)
Sets the given
PersistentProperty to the given value. |
Modifier and Type | Method and Description |
---|---|
void |
SimpleAssociationHandler.doWithAssociation(Association<? extends PersistentProperty<?>> association)
Handle the given
Association . |
default Object |
PersistentPropertyAccessor.getProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path)
Deprecated.
since 2.3, use
PersistentPropertyPathAccessor.getProperty(PersistentPropertyPath) instead |
default Object |
PersistentPropertyPathAccessor.getProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path)
Return the value pointed to by the given
PersistentPropertyPath . |
Object |
PersistentPropertyPathAccessor.getProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path,
AccessOptions.GetOptions context)
Return the value pointed to by the given
PersistentPropertyPath . |
default Object |
PersistentPropertyAccessor.getProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path,
TraversalContext context)
Deprecated.
|
default void |
PersistentPropertyAccessor.setProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path,
Object value)
Deprecated.
since 2.3, use
PersistentPropertyPathAccessor.setProperty(PersistentPropertyPath, Object)
instead. |
void |
PersistentPropertyPathAccessor.setProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path,
Object value)
Sets the given value for the
PersistentProperty pointed to by the given PersistentPropertyPath . |
void |
PersistentPropertyPathAccessor.setProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path,
Object value,
AccessOptions.SetOptions options)
Sets the given value for the
PersistentProperty pointed to by the given PersistentPropertyPath
considering the given AccessOptions . |
Constructor and Description |
---|
GetOptions(Map<PersistentProperty<?>,Function<Object,Object>> handlers,
AccessOptions.GetOptions.GetNulls nullValues) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractMappingContext<E extends MutablePersistentEntity<?,P>,P extends PersistentProperty<P>>
Base class to build mapping metadata and thus create instances of
PersistentEntity and
PersistentProperty . |
interface |
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 an
ApplicationEvent refering to a PersistentEntity . |
Modifier and Type | Method and Description |
---|---|
Optional<PersistentEntity<?,? extends PersistentProperty<?>>> |
PersistentEntities.getPersistentEntity(Class<?> type)
Returns the
PersistentEntity for the given type. |
PersistentEntity<?,? extends PersistentProperty<?>> |
PersistentEntities.getRequiredPersistentEntity(Class<?> type)
Returns the
PersistentEntity for the given type. |
Iterator<PersistentEntity<?,? extends PersistentProperty<?>>> |
PersistentEntities.iterator() |
Modifier and Type | Method and Description |
---|---|
PersistentEntity<?,?> |
PersistentEntities.getEntityUltimatelyReferredToBy(PersistentProperty<?> property)
Returns the
PersistentEntity the given PersistentProperty refers to in case it's an association. |
TypeInformation<?> |
PersistentEntities.getTypeUltimatelyReferredToBy(PersistentProperty<?> property)
Returns the type the given
PersistentProperty ultimately refers to. |
Modifier and Type | Method and Description |
---|---|
<T> Optional<T> |
PersistentEntities.mapOnContext(Class<?> type,
BiFunction<MappingContext<?,? extends PersistentProperty<?>>,PersistentEntity<?,?>,T> combiner)
Executes the given
BiFunction on the given MappingContext and PersistentEntity based on the
given type. |
Constructor and Description |
---|
InvalidPersistentPropertyPath(String source,
TypeInformation<?> type,
String unresolvableSegment,
PersistentPropertyPath<? extends PersistentProperty<?>> resolvedPath)
Creates a new
InvalidPersistentPropertyPath for the given resolved path and message. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractPersistentProperty<P extends PersistentProperty<P>>
Simple implementation of
PersistentProperty . |
class |
AnnotationBasedPersistentProperty<P extends PersistentProperty<P>>
Special
PersistentProperty that takes annotations at a property into account. |
class |
BasicPersistentEntity<T,P extends PersistentProperty<P>>
Simple value object to capture information of
PersistentEntity s. |
interface |
MutablePersistentEntity<T,P extends PersistentProperty<P>>
Interface capturing mutator methods for
PersistentEntity s. |
interface |
ParameterValueProvider<P extends PersistentProperty<P>>
Callback interface to lookup values for a given
Parameter . |
class |
PersistentEntityParameterValueProvider<P extends PersistentProperty<P>>
ParameterValueProvider based on a PersistentEntity to use a PropertyValueProvider to lookup
the value of the property referenced by the given Parameter . |
interface |
PreferredConstructorDiscoverer<T,P extends PersistentProperty<P>>
Helper class to find a
PreferredConstructor . |
interface |
PropertyValueProvider<P extends PersistentProperty<P>>
SPI for components to provide values for as
PersistentProperty . |
class |
SpELExpressionParameterValueProvider<P extends PersistentProperty<P>>
ParameterValueProvider that can be used to front a ParameterValueProvider delegate to prefer a SpEL
expression evaluation over directly resolving the parameter value with the delegate. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractPersistentProperty<P extends PersistentProperty<P>>
Simple implementation of
PersistentProperty . |
class |
AnnotationBasedPersistentProperty<P extends PersistentProperty<P>>
Special
PersistentProperty that takes annotations at a property into account. |
Modifier and Type | Method and Description |
---|---|
<T,E extends PersistentEntity<? extends T,P>,P extends PersistentProperty<P>> |
EntityInstantiator.createInstance(E entity,
ParameterValueProvider<P> provider)
Creates a new instance of the given entity using the given source to pull data from.
|
static <T,P extends PersistentProperty<P>> |
PreferredConstructorDiscoverer.discover(Class<T> type)
Discovers the
PreferredConstructor for the given type. |
static <T,P extends PersistentProperty<P>> |
PreferredConstructorDiscoverer.discover(PersistentEntity<T,P> entity)
Discovers the
PreferredConstructorDiscoverer for the given PersistentEntity . |
Modifier and Type | Method and Description |
---|---|
String |
FieldNamingStrategy.getFieldName(PersistentProperty<?> property)
Returns the field name to be used for the given
PersistentProperty . |
String |
PropertyNameFieldNamingStrategy.getFieldName(PersistentProperty<?> property) |
String |
CamelCaseSplittingFieldNamingStrategy.getFieldName(PersistentProperty<?> property) |
Object |
InstantiationAwarePropertyAccessor.getProperty(PersistentProperty<?> property) |
<S> S |
ConvertingPropertyAccessor.getProperty(PersistentProperty<?> property,
Class<S> targetType)
Returns the value of the given
PersistentProperty converted to the given type. |
protected <S> S |
ConvertingPropertyAccessor.getTypedProperty(PersistentProperty<?> property,
Class<S> type) |
boolean |
BasicPersistentEntity.isCreatorArgument(PersistentProperty<?> property) |
boolean |
BasicPersistentEntity.isIdProperty(PersistentProperty<?> property) |
boolean |
BasicPersistentEntity.isVersionProperty(PersistentProperty<?> property) |
void |
ConvertingPropertyAccessor.setProperty(PersistentProperty<?> property,
Object value) |
void |
InstantiationAwarePropertyAccessor.setProperty(PersistentProperty<?> property,
Object value) |
Modifier and Type | Method and Description |
---|---|
void |
ConvertingPropertyAccessor.setProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path,
Object value) |
Constructor and Description |
---|
PersistentEntityInformation(PersistentEntity<T,? extends PersistentProperty<?>> persistentEntity) |
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.