Uses of Interface
org.springframework.data.util.TypeInformation
Packages that use TypeInformation
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.
Projection subsystem.
Base classes to implement CDI support for repositories.
Core abstractions for repository implementation.
Base classes to implement repositories for various data stores.
Support classes to work with query methods.
Utility classes for repository implementations.
Core utility APIs such as a type information framework to resolve generic types.
Querydsl-specific web support.
-
Uses of TypeInformation in org.springframework.data.convert
Methods in org.springframework.data.convert that return TypeInformationModifier and TypeMethodDescriptionprotected TypeInformation<?>
DefaultTypeMapper.getFallbackTypeFor
(S source) Returns the type fallbackTypeInformation
in case none could be extracted from the given source.<T> TypeInformation<? extends T>
DefaultTypeMapper.readType
(S source, TypeInformation<T> basicType) Reads theTypeInformation
from the given source.<T> TypeInformation<? extends T>
TypeMapper.readType
(S source, TypeInformation<T> defaultType) Returns theTypeInformation
from the given source if it is a more concrete type than the given default one.ConfigurableTypeInformationMapper.resolveTypeFrom
(Alias alias) MappingContextTypeInformationMapper.resolveTypeFrom
(Alias alias) SimpleTypeInformationMapper.resolveTypeFrom
(Alias alias) Returns theTypeInformation
that shall be used when the givenString
value is found as type hint.TypeInformationMapper.resolveTypeFrom
(Alias alias) Returns the actualTypeInformation
to be used for the given alias.Methods in org.springframework.data.convert with parameters of type TypeInformationModifier and TypeMethodDescriptionConfigurableTypeInformationMapper.createAliasFor
(TypeInformation<?> type) MappingContextTypeInformationMapper.createAliasFor
(TypeInformation<?> type) SimpleTypeInformationMapper.createAliasFor
(TypeInformation<?> type) Turn the given type information into the String representation that shall be stored.TypeInformationMapper.createAliasFor
(TypeInformation<?> type) Returns the alias to be used for the givenTypeInformation
.protected final Alias
DefaultTypeMapper.getAliasFor
(TypeInformation<?> info) Returns the alias to be used for the givenTypeInformation
.default <T> T
ValueConversionContext.read
(Object value, TypeInformation<T> target) Reads the value as an instance oftype
.<T> TypeInformation<? extends T>
DefaultTypeMapper.readType
(S source, TypeInformation<T> basicType) <T> TypeInformation<? extends T>
TypeMapper.readType
(S source, TypeInformation<T> defaultType) Returns theTypeInformation
from the given source if it is a more concrete type than the given default one.default <T> T
ValueConversionContext.write
(Object value, TypeInformation<T> target) Write the value as an instance oftype
.void
DefaultTypeMapper.writeType
(TypeInformation<?> info, S sink) void
TypeMapper.writeType
(TypeInformation<?> type, S dbObject) Writes type information for the givenTypeInformation
into the given sink. -
Uses of TypeInformation in org.springframework.data.mapping
Methods in org.springframework.data.mapping that return TypeInformationModifier and TypeMethodDescriptionPersistentProperty.getAssociationTargetTypeInformation()
Return the type the property refers to in case it's an association, i.e.PropertyPath.getOwningType()
Returns the owning type of thePropertyPath
.Parameter.getType()
Returns theTypeInformation
of the parameter.PropertyReferenceException.getType()
Returns the type the property could not be found on.PersistentEntity.getTypeInformation()
Returns theTypeInformation
backing thisPersistentEntity
.PersistentProperty.getTypeInformation()
Returns theTypeInformation
of the property.PropertyPath.getTypeInformation()
Methods in org.springframework.data.mapping that return types with arguments of type TypeInformationModifier and TypeMethodDescriptionIterable<? extends TypeInformation<?>>
PersistentProperty.getPersistentEntityTypeInformation()
Returns the detectedTypeInformations
if the property references aPersistentEntity
.Methods in org.springframework.data.mapping with parameters of type TypeInformationModifier and TypeMethodDescriptionstatic PropertyPath
PropertyPath.from
(String source, TypeInformation<?> type) Constructors in org.springframework.data.mapping with parameters of type TypeInformationModifierConstructorDescriptionParameter
(String name, TypeInformation<T> type, Annotation[] annotations, PersistentEntity<T, P> entity) PropertyReferenceException
(String propertyName, TypeInformation<?> type, List<PropertyPath> alreadyResolvedPah) Creates a newPropertyReferenceException
. -
Uses of TypeInformation in org.springframework.data.mapping.context
Methods in org.springframework.data.mapping.context that return TypeInformationModifier and TypeMethodDescriptionInvalidPersistentPropertyPath.getType()
Returns the type the source property path was attempted to be resolved on.PersistentEntities.getTypeUltimatelyReferredToBy
(PersistentProperty<?> property) Returns the type the givenPersistentProperty
ultimately refers to.Methods in org.springframework.data.mapping.context that return types with arguments of type TypeInformationModifier and TypeMethodDescriptionAbstractMappingContext.getManagedTypes()
MappingContext.getManagedTypes()
PersistentEntities.getManagedTypes()
Returns allTypeInformation
exposed by the registeredMappingContext
s.Methods in org.springframework.data.mapping.context with parameters of type TypeInformationModifier and TypeMethodDescriptionAbstractMappingContext.addPersistentEntity
(TypeInformation<?> typeInformation) Adds the givenTypeInformation
to theMappingContext
.protected abstract <T> E
AbstractMappingContext.createPersistentEntity
(TypeInformation<T> typeInformation) Creates the concretePersistentEntity
instance.AbstractMappingContext.getPersistentEntity
(TypeInformation<?> type) MappingContext.getPersistentEntity
(TypeInformation<?> type) Returns aPersistentEntity
for the givenTypeInformation
.default E
MappingContext.getRequiredPersistentEntity
(TypeInformation<?> type) Returns aPersistentEntity
for the givenTypeInformation
.protected boolean
AbstractMappingContext.shouldCreatePersistentEntityFor
(TypeInformation<?> type) Returns whether aPersistentEntity
instance should be created for the givenTypeInformation
.Constructors in org.springframework.data.mapping.context with parameters of type TypeInformationModifierConstructorDescriptionInvalidPersistentPropertyPath
(String source, TypeInformation<?> type, String unresolvableSegment, PersistentPropertyPath<? extends PersistentProperty<?>> resolvedPath) Creates a newInvalidPersistentPropertyPath
for the given resolved path and message. -
Uses of TypeInformation in org.springframework.data.mapping.model
Methods in org.springframework.data.mapping.model that return TypeInformationModifier and TypeMethodDescriptionprotected TypeInformation<?>
AbstractPersistentProperty.getActualTypeInformation()
AbstractPersistentProperty.getAssociationTargetTypeInformation()
AnnotationBasedPersistentProperty.getAssociationTargetTypeInformation()
AbstractPersistentProperty.getTypeInformation()
BasicPersistentEntity.getTypeInformation()
Methods in org.springframework.data.mapping.model that return types with arguments of type TypeInformationModifier and TypeMethodDescriptionIterable<? extends TypeInformation<?>>
AbstractPersistentProperty.getPersistentEntityTypeInformation()
Methods in org.springframework.data.mapping.model with parameters of type TypeInformationModifier and TypeMethodDescriptionstatic Property
Property.of
(TypeInformation<?> type, PropertyDescriptor descriptor) Creates a newProperty
for the givenPropertyDescriptor
.static Property
Property.of
(TypeInformation<?> type, Field field) Creates a newProperty
backed by the given field.static Property
Property.of
(TypeInformation<?> type, Field field, PropertyDescriptor descriptor) Constructors in org.springframework.data.mapping.model with parameters of type TypeInformationModifierConstructorDescriptionBasicPersistentEntity
(TypeInformation<T> information) Creates a newBasicPersistentEntity
from the givenTypeInformation
.BasicPersistentEntity
(TypeInformation<T> information, Comparator<P> comparator) -
Uses of TypeInformation in org.springframework.data.projection
Methods in org.springframework.data.projection that return TypeInformationModifier and TypeMethodDescriptionEntityProjection.getActualDomainType()
EntityProjection.getActualMappedType()
EntityProjection.getDomainType()
EntityProjection.getMappedType()
Methods in org.springframework.data.projection with parameters of type TypeInformationModifier and TypeMethodDescriptionstatic <M,
D> EntityProjection.ContainerPropertyProjection<M, D> EntityProjection.ContainerPropertyProjection.nonProjecting
(PropertyPath propertyPath, TypeInformation<M> mappedType, TypeInformation<D> domainType) Create a non-projecting variant of a mapped type.static <M,
D> EntityProjection<M, D> EntityProjection.nonProjecting
(TypeInformation<M> mappedType, TypeInformation<D> domainType, List<EntityProjection.PropertyProjection<?, ?>> properties) Create a non-projecting variant of a mapped type.static <M,
D> EntityProjection.PropertyProjection<M, D> EntityProjection.PropertyProjection.nonProjecting
(PropertyPath propertyPath, TypeInformation<M> mappedType, TypeInformation<D> domainType) Create a non-projecting variant of a mapped type.static <M,
D> EntityProjection.ContainerPropertyProjection<M, D> EntityProjection.ContainerPropertyProjection.projecting
(PropertyPath propertyPath, TypeInformation<M> mappedType, TypeInformation<D> domainType, List<EntityProjection.PropertyProjection<?, ?>> properties, EntityProjection.ProjectionType projectionType) Create a projecting variant of a mapped type.static <M,
D> EntityProjection<M, D> EntityProjection.projecting
(TypeInformation<M> mappedType, TypeInformation<D> domainType, List<EntityProjection.PropertyProjection<?, ?>> properties, EntityProjection.ProjectionType projectionType) Create a projecting variant of a mapped type.static <M,
D> EntityProjection.PropertyProjection<M, D> EntityProjection.PropertyProjection.projecting
(PropertyPath propertyPath, TypeInformation<M> mappedType, TypeInformation<D> domainType, List<EntityProjection.PropertyProjection<?, ?>> properties, EntityProjection.ProjectionType projectionType) Create a projecting variant of a mapped type. -
Uses of TypeInformation in org.springframework.data.querydsl.binding
Methods in org.springframework.data.querydsl.binding with parameters of type TypeInformationModifier and TypeMethodDescriptionQuerydslBindingsFactory.createBindingsFor
(TypeInformation<?> domainType) Creates theQuerydslBindings
to be used using for the given domain type.QuerydslBindingsFactory.createBindingsFor
(TypeInformation<?> domainType, Class<? extends QuerydslBinderCustomizer<?>> customizer) Creates theQuerydslBindings
to be used using for the given domain type and a pre-definedQuerydslBinderCustomizer
.com.querydsl.core.types.Predicate
QuerydslPredicateBuilder.getPredicate
(TypeInformation<?> type, MultiValueMap<String, ?> values, QuerydslBindings bindings) -
Uses of TypeInformation in org.springframework.data.repository.core
Methods in org.springframework.data.repository.core that return TypeInformationModifier and TypeMethodDescriptionRepositoryInformationSupport.getDomainTypeInformation()
RepositoryMetadata.getDomainTypeInformation()
Returns theTypeInformation
of the domain type the repository is declared to manage.RepositoryInformationSupport.getIdTypeInformation()
RepositoryMetadata.getIdTypeInformation()
Returns theTypeInformation
of the id type of the repository.RepositoryInformationSupport.getReturnType
(Method method) RepositoryMetadata.getReturnType
(Method method) Returns the typeMethod
return type as it is declared in the repository. -
Uses of TypeInformation in org.springframework.data.repository.core.support
Methods in org.springframework.data.repository.core.support that return TypeInformationModifier and TypeMethodDescriptionAnnotationRepositoryMetadata.getDomainTypeInformation()
DefaultRepositoryMetadata.getDomainTypeInformation()
AnnotationRepositoryMetadata.getIdTypeInformation()
DefaultRepositoryMetadata.getIdTypeInformation()
AbstractRepositoryMetadata.getReturnType
(Method method) -
Uses of TypeInformation in org.springframework.data.repository.query
Methods in org.springframework.data.repository.query with parameters of type TypeInformationModifier and TypeMethodDescriptionprotected Parameters<?,
?> QueryMethod.createParameters
(Method method, TypeInformation<?> domainType) Creates aParameters
instance.Constructors in org.springframework.data.repository.query with parameters of type TypeInformationModifierConstructorDescriptionDefaultParameters
(Method method, TypeInformation<?> aggregateType) protected
Parameter
(MethodParameter parameter, TypeInformation<?> domainType) -
Uses of TypeInformation in org.springframework.data.repository.util
Methods in org.springframework.data.repository.util that return TypeInformationModifier and TypeMethodDescriptionstatic TypeInformation<?>
QueryExecutionConverters.unwrapWrapperTypes
(TypeInformation<?> type) Recursively unwraps well known wrapper types from the givenTypeInformation
.static TypeInformation<?>
ReactiveWrapperConverters.unwrapWrapperTypes
(TypeInformation<?> type) Recursively unwraps well known wrapper types from the givenTypeInformation
.Methods in org.springframework.data.repository.util with parameters of type TypeInformationModifier and TypeMethodDescriptionstatic TypeInformation<?>
QueryExecutionConverters.unwrapWrapperTypes
(TypeInformation<?> type) Recursively unwraps well known wrapper types from the givenTypeInformation
.static TypeInformation<?>
ReactiveWrapperConverters.unwrapWrapperTypes
(TypeInformation<?> type) Recursively unwraps well known wrapper types from the givenTypeInformation
. -
Uses of TypeInformation in org.springframework.data.util
Classes in org.springframework.data.util that implement TypeInformationModifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.since 3.0 to go package protected at some point.Fields in org.springframework.data.util declared as TypeInformationModifier and TypeFieldDescriptionstatic final TypeInformation<Collection>
TypeInformation.COLLECTION
static final TypeInformation<List>
TypeInformation.LIST
static final TypeInformation<Map>
TypeInformation.MAP
static final TypeInformation<Object>
TypeInformation.OBJECT
static final TypeInformation<Set>
TypeInformation.SET
Methods in org.springframework.data.util that return TypeInformationModifier and TypeMethodDescriptionstatic TypeInformation<?>
TypeInformation.fromMethodParameter
(MethodParameter parameter) Returns a newTypeInformation
for the givenMethodParameter
.static <S> TypeInformation<S>
ClassTypeInformation.fromReturnTypeOf
(Method method) Deprecated.since 3.0.static TypeInformation<?>
TypeInformation.fromReturnTypeOf
(Method method) Returns aTypeInformation
for the givenMethod
.static TypeInformation<?>
TypeInformation.fromReturnTypeOf
(Method method, Class<?> type) Returns aTypeInformation
for the given method as declared on the given type.TypeInformation.getActualType()
Transparently returns theMap
value type if the type is aMap
, returns the component type if the typeisCollectionLike()
or the simple type if none of this applies.TypeInformation.getComponentType()
Returns the component type forCollection
s or the key type forMap
s.TypeInformation.getMapValueType()
Will return the type of the value in case the underlying type is aMap
.TypeInformation.getProperty
(String property) Returns the property information for the property with the given name.TypeInformation.getRawTypeInformation()
Returns aTypeInformation
to represent theTypeInformation
of the raw type of the current instance.default TypeInformation<?>
TypeInformation.getRequiredActualType()
Transparently returns theMap
value type if the type is aMap
, returns the component type if the typeisCollectionLike()
or the simple type if none of this applies.default TypeInformation<?>
TypeInformation.getRequiredComponentType()
Returns the component type forCollection
s, the key type forMap
s or the single generic type if available.default TypeInformation<?>
TypeInformation.getRequiredMapValueType()
Will return the type of the value in case the underlying type is aMap
or throwIllegalStateException
if the map value type cannot be resolved.default TypeInformation<?>
TypeInformation.getRequiredProperty
(String property) Returns the property information for the property with the given name or throwIllegalArgumentException
if the type information cannot be resolved.default TypeInformation<?>
TypeInformation.getRequiredSuperTypeInformation
(Class<?> superType) Returns theTypeInformation
for the given raw super type.TypeInformation.getReturnType
(Method method) Returns aTypeInformation
for the return type of the givenMethod
.TypeInformation.getSuperTypeInformation
(Class<?> superType) Returns theTypeInformation
for the given raw super type.default TypeInformation<?>
TypeInformation.getUserTypeInformation()
Returns the user type of the property if proxied.static <S> TypeInformation<S>
Creates a newTypeInformation
for the givenClass
.static TypeInformation<?>
TypeInformation.of
(ResolvableType type) Creates a newTypeInformation
from the givenResolvableType
.TypeInformation<? extends S>
ClassTypeInformation.specialize
(TypeInformation<?> type) Deprecated, for removal: This API element is subject to removal in a future version.default TypeInformation<? extends S>
TypeInformation.specialize
(TypeInformation<?> type) Specializes the given (raw)TypeInformation
using the context of the current potentially parameterized type, basically turning the given raw type into a parameterized one.static TypeInformation<?>
NullableWrapperConverters.unwrapActualType
(TypeInformation<?> type) Recursively unwraps well known wrapper types from the givenTypeInformation
.Methods in org.springframework.data.util that return types with arguments of type TypeInformationModifier and TypeMethodDescriptionList<TypeInformation<?>>
TypeInformation.getParameterTypes
(Constructor<?> constructor) Returns theTypeInformation
s for the parameters of the givenConstructor
.List<TypeInformation<?>>
TypeInformation.getParameterTypes
(Method method) Returns theTypeInformation
s for the parameters of the givenMethod
.List<TypeInformation<?>>
TypeInformation.getTypeArguments()
Returns theTypeInformation
for the type arguments of the currentTypeInformation
.Methods in org.springframework.data.util with parameters of type TypeInformationModifier and TypeMethodDescriptionboolean
ClassTypeInformation.isAssignableFrom
(TypeInformation<?> target) Deprecated, for removal: This API element is subject to removal in a future version.boolean
TypeInformation.isAssignableFrom
(TypeInformation<?> target) Returns if the currentTypeInformation
can be safely assigned to the given one.TypeInformation<? extends S>
ClassTypeInformation.specialize
(TypeInformation<?> type) Deprecated, for removal: This API element is subject to removal in a future version.default TypeInformation<? extends S>
TypeInformation.specialize
(TypeInformation<?> type) Specializes the given (raw)TypeInformation
using the context of the current potentially parameterized type, basically turning the given raw type into a parameterized one.static TypeInformation<?>
NullableWrapperConverters.unwrapActualType
(TypeInformation<?> type) Recursively unwraps well known wrapper types from the givenTypeInformation
. -
Uses of TypeInformation in org.springframework.data.web.querydsl
Methods in org.springframework.data.web.querydsl that return TypeInformationModifier and TypeMethodDescriptionprotected static TypeInformation<?>
QuerydslPredicateArgumentResolverSupport.extractTypeInfo
(MethodParameter parameter, MergedAnnotation<QuerydslPredicate> predicateAnnotation) Obtains the domain type information from the given method parameter.