Uses of Interface
org.springframework.data.mapping.PersistentProperty
Packages that use PersistentProperty
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.
-
Uses of PersistentProperty in org.springframework.data.convert
Classes in org.springframework.data.convert with type parameters of type PersistentPropertyModifier and TypeInterfaceDescriptioninterfaceEntityConverter<E extends PersistentEntity<?,P>, P extends PersistentProperty<P>, T, S> CombinedEntityReaderandEntityWriterand add the ability to access aMappingContextandConversionService.interfacePropertyValueConverter<DV,SV, C extends ValueConversionContext<? extends PersistentProperty<?>>> PropertyValueConverterprovides a symmetric way of converting certain properties from domain to store-specific values.static classPropertyValueConverter.FunctionPropertyValueConverter<DV,SV, P extends PersistentProperty<P>> APropertyValueConverterthat delegates conversion to the givenBiFunctions.classPropertyValueConverterRegistrar<P extends PersistentProperty<P>>Configuration class used to register aPropertyValueConverterwith aSimplePropertyValueConverterRegistrythat can be used inPropertyValueConversions.static classPropertyValueConverterRegistrar.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 classPropertyValueConverterRegistrar.WritingConverterRegistrationBuilder<T,S, P extends PersistentProperty<P>> Helper class used to build up a fluent registration API starting with writing.classSimplePropertyValueConverterRegistry<P extends PersistentProperty<P>>A registry of property specificvalue convertesthat may be used to convert only specific properties/values of an object.interfaceValueConversionContext<P extends PersistentProperty<P>>TheValueConversionContextprovides access to the store-specificPersistentPropertyand allows to call the store-default conversion through the read/write methods.interfaceValueConverterRegistry<P extends PersistentProperty<P>>A registry ofproperty-specificvalue convertersto convert only specific properties/values of an object.Methods in org.springframework.data.convert with type parameters of type PersistentPropertyModifier and TypeMethodDescription<DV,SV, P extends PersistentProperty<P>, VCC extends ValueConversionContext<P>>
PropertyValueConverter<DV,SV, VCC> PropertyValueConversions.getValueConverter(P property) <DV,SV, P extends PersistentProperty<P>, D extends ValueConversionContext<P>>
PropertyValueConverter<DV,SV, D> SimplePropertyValueConversions.getValueConverter(P property) <P extends PersistentProperty<P>,VCC extends ValueConversionContext<P>>
ObjectConvert a value from its store-native representation into its domain-specific type.static <P extends PersistentProperty<P>>
PropertyValueConversionsPropertyValueConversions.simple(Consumer<PropertyValueConverterRegistrar<P>> config) Helper method used to create aPropertyValueConversionsinstance with the configuredconvertersprovided by thecallback.static <P extends PersistentProperty<P>>
ValueConverterRegistry<P>ValueConverterRegistry.simple()Obtain a simpleValueConverterRegistry.<P extends PersistentProperty<P>,VCC extends ValueConversionContext<P>>
ObjectConvert a value from its domain-specific value into its store-native representation.Methods in org.springframework.data.convert with parameters of type PersistentPropertyModifier and TypeMethodDescriptiondefault <DV,SV, P extends ValueConversionContext<?>>
PropertyValueConverter<DV,SV, P> PropertyValueConverterFactory.getConverter(PersistentProperty<?> property) Get thePropertyValueConverterapplicable for the givenPersistentProperty.booleanPropertyValueConversionService.hasConverter(PersistentProperty<?> property) Return true if aPropertyValueConverteris registered for thePersistentProperty.booleanCustomConversions.hasValueConverter(PersistentProperty<?> property) Determines whether the given, requiredpropertyhas a value-specific converter registered.booleanPropertyValueConversions.hasValueConverter(PersistentProperty<?> property) booleanSimplePropertyValueConversions.hasValueConverter(PersistentProperty<?> property) Determines whether aPropertyValueConverterhas been registered for the givenproperty.Constructor parameters in org.springframework.data.convert with type arguments of type PersistentPropertyModifierConstructorDescriptionDtoInstantiatingConverter(Class<?> dtoType, MappingContext<? extends PersistentEntity<?, ?>, ? extends PersistentProperty<?>> context, EntityInstantiators instantiators) Create a newConverterto instantiate DTOs. -
Uses of PersistentProperty in org.springframework.data.mapping
Classes in org.springframework.data.mapping with type parameters of type PersistentPropertyModifier and TypeClassDescriptionclassAssociation<P extends PersistentProperty<P>>Value object to captureAssociations.interfaceAssociationHandler<P extends PersistentProperty<P>>Callback interface to implement functionality to be applied to a collection ofAssociations.final classFactoryMethod<T,P extends PersistentProperty<P>> Value object to encapsulate the factory method to be used when mapping persistent data to objects.interfaceInstanceCreatorMetadata<P extends PersistentProperty<P>>Metadata describing a mechanism to create instances of persistent types.classParameter<T,P extends PersistentProperty<P>> Value object to represent constructor parameters.interfacePersistentEntity<T,P extends PersistentProperty<P>> Represents a persistent entity.interfacePersistentProperty<P extends PersistentProperty<P>>interfacePersistentPropertyPath<P extends PersistentProperty<P>>Abstraction of a path ofPersistentPropertys.interfacePersistentPropertyPaths<T,P extends PersistentProperty<P>> A wrapper for a collection ofPersistentPropertyPaths.final classPreferredConstructor<T,P extends PersistentProperty<P>> Value object to encapsulate the constructor to be used when mapping persistent data to objects.interfacePropertyHandler<P extends PersistentProperty<P>>Callback interface to do something with all plainPersistentPropertyinstances except associations and transient properties.Methods in org.springframework.data.mapping with parameters of type PersistentPropertyModifier and TypeMethodDescriptionvoidSimplePropertyHandler.doWithPersistentProperty(PersistentProperty<?> property) Handle the givenPersistentProperty.PersistentPropertyAccessor.getProperty(PersistentProperty<?> property) Returns the value of the givenPersistentPropertyof the underlying bean instance.default booleanPersistentEntity.isConstructorArgument(PersistentProperty<?> property) Deprecated.booleanPreferredConstructor.isConstructorParameter(PersistentProperty<?> property) Deprecated.since 3.0, useInstanceCreatorMetadata.isCreatorParameter(PersistentProperty)instead.booleanPersistentEntity.isCreatorArgument(PersistentProperty<?> property) Returns whether the givenPersistentPropertyis referred to by a creator argument of thePersistentEntity.booleanInstanceCreatorMetadata.isCreatorParameter(PersistentProperty<?> property) Check whether the givenPersistentPropertyis being used as creator parameter.booleanPersistentEntity.isIdProperty(PersistentProperty<?> property) Returns whether the givenPersistentPropertyis the id property of the entity.booleanPersistentEntity.isVersionProperty(PersistentProperty<?> property) Returns whether the givenPersistentPropertyis the version property of the entity.booleanAccessOptions.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.AccessOptions.GetOptions.registerCollectionHandler(PersistentProperty<?> property, Function<? super Collection<?>, Object> handler) Registers aFunctionto handleCollectionvalues for the given property.AccessOptions.GetOptions.registerHandler(PersistentProperty<?> property, Class<T> type, Function<? super T, Object> handler) Registers the givenFunctionto post-process values obtained for the givenPersistentPropertyfor the given type.AccessOptions.GetOptions.registerHandler(PersistentProperty<?> property, Function<Object, Object> handler) Registers aFunctionto post-process values for the given property.AccessOptions.GetOptions.registerListHandler(PersistentProperty<?> property, Function<? super List<?>, Object> handler) AccessOptions.GetOptions.registerMapHandler(PersistentProperty<?> property, Function<? super Map<?, ?>, Object> handler) AccessOptions.GetOptions.registerSetHandler(PersistentProperty<?> property, Function<? super Set<?>, Object> handler) voidPersistentPropertyAccessor.setProperty(PersistentProperty<?> property, Object value) Sets the givenPersistentPropertyto the given value.Method parameters in org.springframework.data.mapping with type arguments of type PersistentPropertyModifier and TypeMethodDescriptionvoidSimpleAssociationHandler.doWithAssociation(Association<? extends PersistentProperty<?>> association) Handle the givenAssociation.PersistentPropertyPathAccessor.getProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path) Return the value pointed to by the givenPersistentPropertyPath.PersistentPropertyPathAccessor.getProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path, AccessOptions.GetOptions options) Return the value pointed to by the givenPersistentPropertyPath.voidPersistentPropertyPathAccessor.setProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path, Object value) Sets the given value for thePersistentPropertypointed to by the givenPersistentPropertyPath.voidPersistentPropertyPathAccessor.setProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path, Object value, AccessOptions.SetOptions options) Sets the given value for thePersistentPropertypointed to by the givenPersistentPropertyPathconsidering the givenAccessOptions.Constructor parameters in org.springframework.data.mapping with type arguments of type PersistentPropertyModifierConstructorDescriptionGetOptions(Map<PersistentProperty<?>, Function<Object, Object>> handlers, AccessOptions.GetOptions.GetNulls nullValues) -
Uses of PersistentProperty in org.springframework.data.mapping.context
Classes in org.springframework.data.mapping.context with type parameters of type PersistentPropertyModifier and TypeClassDescriptionclassAbstractMappingContext<E extends MutablePersistentEntity<?,P>, P extends PersistentProperty<P>> Base class to build mapping metadata and thus create instances ofPersistentEntityandPersistentProperty.interfaceMappingContext<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.classMappingContextEvent<E extends PersistentEntity<?,P>, P extends PersistentProperty<P>> Base implementation of anApplicationEventrefering to aPersistentEntity.Methods in org.springframework.data.mapping.context that return types with arguments of type PersistentPropertyModifier and TypeMethodDescriptionOptional<PersistentEntity<?,? extends PersistentProperty<?>>> PersistentEntities.getPersistentEntity(Class<?> type) Returns thePersistentEntityfor the given type.PersistentEntity<?,? extends PersistentProperty<?>> PersistentEntities.getRequiredPersistentEntity(Class<?> type) Returns thePersistentEntityfor the given type.Iterator<PersistentEntity<?,? extends PersistentProperty<?>>> PersistentEntities.iterator()Methods in org.springframework.data.mapping.context with parameters of type PersistentPropertyModifier and TypeMethodDescriptionPersistentEntity<?,?> PersistentEntities.getEntityUltimatelyReferredToBy(PersistentProperty<?> property) Returns thePersistentEntitythe givenPersistentPropertyrefers to in case it's an association.PersistentEntities.getTypeUltimatelyReferredToBy(PersistentProperty<?> property) Returns the type the givenPersistentPropertyultimately refers to.Method parameters in org.springframework.data.mapping.context with type arguments of type PersistentPropertyModifier and TypeMethodDescription<T> Optional<T>PersistentEntities.mapOnContext(Class<?> type, BiFunction<MappingContext<?, ? extends PersistentProperty<?>>, PersistentEntity<?, ?>, T> combiner) Executes the givenBiFunctionon the givenMappingContextandPersistentEntitybased on the given type.Constructor parameters in org.springframework.data.mapping.context with type arguments of type PersistentPropertyModifierConstructorDescriptionInvalidPersistentPropertyPath(String source, TypeInformation<?> type, String unresolvableSegment, PersistentPropertyPath<? extends PersistentProperty<?>> resolvedPath) Creates a newInvalidPersistentPropertyPathfor the given resolved path and message. -
Uses of PersistentProperty in org.springframework.data.mapping.model
Classes in org.springframework.data.mapping.model with type parameters of type PersistentPropertyModifier and TypeClassDescriptionclassAbstractPersistentProperty<P extends PersistentProperty<P>>Simple implementation ofPersistentProperty.classAnnotationBasedPersistentProperty<P extends PersistentProperty<P>>SpecialPersistentPropertythat takes annotations at a property into account.classBasicPersistentEntity<T,P extends PersistentProperty<P>> Simple value object to capture information ofPersistentEntitys.interfaceMutablePersistentEntity<T,P extends PersistentProperty<P>> Interface capturing mutator methods forPersistentEntitys.interfaceParameterValueProvider<P extends PersistentProperty<P>>Callback interface to lookup values for a givenParameter.classPersistentEntityParameterValueProvider<P extends PersistentProperty<P>>ParameterValueProviderbased on aPersistentEntityto use aPropertyValueProviderto lookup the value of the property referenced by the givenParameter.interfacePropertyValueProvider<P extends PersistentProperty<P>>SPI for components to provide values for asPersistentProperty.classSpELExpressionParameterValueProvider<P extends PersistentProperty<P>>Deprecated.since 3.3, useValueExpressionParameterValueProviderinstead.classValueExpressionParameterValueProvider<P extends PersistentProperty<P>>ParameterValueProviderthat can be used to front aParameterValueProviderdelegate to prefer a SpEL expression evaluation over directly resolving the parameter value with the delegate.Classes in org.springframework.data.mapping.model that implement PersistentPropertyModifier and TypeClassDescriptionclassAbstractPersistentProperty<P extends PersistentProperty<P>>Simple implementation ofPersistentProperty.classAnnotationBasedPersistentProperty<P extends PersistentProperty<P>>SpecialPersistentPropertythat takes annotations at a property into account.Methods in org.springframework.data.mapping.model with type parameters of type PersistentPropertyModifier 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.static <T,P extends PersistentProperty<P>>
PreferredConstructor<T,P> Discovers thePreferredConstructorfor the given type.static <T,P extends PersistentProperty<P>>
PreferredConstructor<T,P> PreferredConstructorDiscoverer.discover(PersistentEntity<T, P> entity) Discovers thePreferredConstructorDiscovererfor the givenPersistentEntity.Methods in org.springframework.data.mapping.model with parameters of type PersistentPropertyModifier and TypeMethodDescriptionCamelCaseSplittingFieldNamingStrategy.getFieldName(PersistentProperty<?> property) FieldNamingStrategy.getFieldName(PersistentProperty<?> property) Returns the field name to be used for the givenPersistentProperty.PropertyNameFieldNamingStrategy.getFieldName(PersistentProperty<?> property) <S> SConvertingPropertyAccessor.getProperty(PersistentProperty<?> property, Class<S> targetType) Returns the value of the givenPersistentPropertyconverted to the given type.InstantiationAwarePropertyAccessor.getProperty(PersistentProperty<?> property) protected <S> SConvertingPropertyAccessor.getTypedProperty(PersistentProperty<?> property, Class<S> type) booleanBasicPersistentEntity.isCreatorArgument(PersistentProperty<?> property) booleanBasicPersistentEntity.isIdProperty(PersistentProperty<?> property) booleanBasicPersistentEntity.isVersionProperty(PersistentProperty<?> property) voidConvertingPropertyAccessor.setProperty(PersistentProperty<?> property, Object value) voidInstantiationAwarePropertyAccessor.setProperty(PersistentProperty<?> property, Object value) Method parameters in org.springframework.data.mapping.model with type arguments of type PersistentPropertyModifier and TypeMethodDescriptionvoidConvertingPropertyAccessor.setProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path, Object value) -
Uses of PersistentProperty in org.springframework.data.repository.core.support
Constructor parameters in org.springframework.data.repository.core.support with type arguments of type PersistentPropertyModifierConstructorDescriptionPersistentEntityInformation(PersistentEntity<T, ? extends PersistentProperty<?>> persistentEntity)
PersistentEntity.isCreatorArgument(PersistentProperty)instead.