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. -
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.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.classPreferredConstructor<T,P extends PersistentProperty<P>> Value object to encapsulate the constructor to be used when mapping persistent data to objects.static classPreferredConstructor.Parameter<T,P extends PersistentProperty<P>> Value object to represent constructor parameters.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.booleanPersistentEntity.isConstructorArgument(PersistentProperty<?> property) Returns whether the givenPersistentPropertyis referred to by a constructor argument of thePersistentEntity.booleanPreferredConstructor.isConstructorParameter(PersistentProperty<?> property) Returns whether the givenPersistentPropertyis referenced in a constructor argument of thePersistentEntitybacking thisPreferredConstructor.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.TraversalContext.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.<T> TraversalContextTraversalContext.registerHandler(PersistentProperty<?> property, Class<T> type, Function<? super T, Object> handler) Registers the givenFunctionto post-process values obtained for the givenPersistentPropertyfor the given type.TraversalContext.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) TraversalContext.registerListHandler(PersistentProperty<?> property, Function<? super List<?>, Object> handler) AccessOptions.GetOptions.registerMapHandler(PersistentProperty<?> property, Function<? super Map<?, ?>, Object> handler) TraversalContext.registerMapHandler(PersistentProperty<?> property, Function<? super Map<?, ?>, Object> handler) AccessOptions.GetOptions.registerSetHandler(PersistentProperty<?> property, Function<? super Set<?>, Object> handler) TraversalContext.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.default ObjectPersistentPropertyAccessor.getProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path) Deprecated.default ObjectPersistentPropertyAccessor.getProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path, TraversalContext context) Deprecated.default ObjectPersistentPropertyPathAccessor.getProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path) Return the value pointed to by the givenPersistentPropertyPath.PersistentPropertyPathAccessor.getProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path, AccessOptions.GetOptions context) Return the value pointed to by the givenPersistentPropertyPath.default voidPersistentPropertyAccessor.setProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path, Object value) Deprecated.since 2.3, usePersistentPropertyPathAccessor.setProperty(PersistentPropertyPath, Object)instead.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 givenPreferredConstructor.Parameter.classPersistentEntityParameterValueProvider<P extends PersistentProperty<P>>ParameterValueProviderbased on aPersistentEntityto use aPropertyValueProviderto lookup the value of the property referenced by the givenPreferredConstructor.Parameter.interfacePreferredConstructorDiscoverer<T,P extends PersistentProperty<P>> Helper class to find aPreferredConstructor.interfacePropertyValueProvider<P extends PersistentProperty<P>>SPI for components to provide values for asPersistentProperty.classSpELExpressionParameterValueProvider<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.isConstructorArgument(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)
PersistentPropertyPathAccessor.getProperty(PersistentPropertyPath)instead