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 fallbackTypeInformationin case none could be extracted from the given source.<T> TypeInformation<? extends T>DefaultTypeMapper.readType(S source, TypeInformation<T> basicType) Reads theTypeInformationfrom the given source.<T> TypeInformation<? extends T>TypeMapper.readType(S source, TypeInformation<T> defaultType) Returns theTypeInformationfrom 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 theTypeInformationthat shall be used when the givenStringvalue is found as type hint.TypeInformationMapper.resolveTypeFrom(Alias alias) Returns the actualTypeInformationto 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 AliasDefaultTypeMapper.getAliasFor(TypeInformation<?> info) Returns the alias to be used for the givenTypeInformation.default <T> TValueConversionContext.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 theTypeInformationfrom the given source if it is a more concrete type than the given default one.default <T> TValueConversionContext.write(Object value, TypeInformation<T> target) Write the value as an instance oftype.voidDefaultTypeMapper.writeType(TypeInformation<?> info, S sink) voidTypeMapper.writeType(TypeInformation<?> type, S dbObject) Writes type information for the givenTypeInformationinto 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 theTypeInformationof the parameter.PropertyReferenceException.getType()Returns the type the property could not be found on.PersistentEntity.getTypeInformation()Returns theTypeInformationbacking thisPersistentEntity.PersistentProperty.getTypeInformation()Returns theTypeInformationof 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 detectedTypeInformationsif the property references aPersistentEntity.Methods in org.springframework.data.mapping with parameters of type TypeInformationModifier and TypeMethodDescriptionstatic PropertyPathPropertyPath.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 givenPersistentPropertyultimately 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 allTypeInformationexposed by the registeredMappingContexts.Methods in org.springframework.data.mapping.context with parameters of type TypeInformationModifier and TypeMethodDescriptionAbstractMappingContext.addPersistentEntity(TypeInformation<?> typeInformation) Adds the givenTypeInformationto theMappingContext.protected abstract <T> EAbstractMappingContext.createPersistentEntity(TypeInformation<T> typeInformation) Creates the concretePersistentEntityinstance.AbstractMappingContext.getPersistentEntity(TypeInformation<?> type) MappingContext.getPersistentEntity(TypeInformation<?> type) Returns aPersistentEntityfor the givenTypeInformation.AbstractMappingContext.getPersistentPropertyPath(String propertyPath, TypeInformation<?> type) MappingContext.getPersistentPropertyPath(String propertyPath, TypeInformation<?> type) Returns allPersistentPropertys for the given dot path notation based on the given type.default EMappingContext.getRequiredPersistentEntity(TypeInformation<?> type) Returns aPersistentEntityfor the givenTypeInformation.protected booleanAbstractMappingContext.shouldCreatePersistentEntityFor(TypeInformation<?> type) Returns whether aPersistentEntityinstance should be created for the givenTypeInformation.protected booleanAbstractMappingContext.shouldCreateProperties(TypeInformation<?> typeInformation) Whether to create thePersistentPropertys 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 newInvalidPersistentPropertyPathfor 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 PropertyProperty.of(TypeInformation<?> type, PropertyDescriptor descriptor) Creates a newPropertyfor the givenPropertyDescriptor.static PropertyProperty.of(TypeInformation<?> type, Field field) Creates a newPropertybacked by the given field.static PropertyProperty.of(TypeInformation<?> type, Field field, PropertyDescriptor descriptor) Constructors in org.springframework.data.mapping.model with parameters of type TypeInformationModifierConstructorDescriptionBasicPersistentEntity(TypeInformation<T> information) Creates a newBasicPersistentEntityfrom 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 theQuerydslBindingsto be used using for the given domain type.QuerydslBindingsFactory.createBindingsFor(TypeInformation<?> domainType, Class<? extends QuerydslBinderCustomizer<?>> customizer) Creates theQuerydslBindingsto be used using for the given domain type and a pre-definedQuerydslBinderCustomizer.com.querydsl.core.types.PredicateQuerydslPredicateBuilder.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 theTypeInformationof the domain type the repository is declared to manage.RepositoryInformationSupport.getIdTypeInformation()RepositoryMetadata.getIdTypeInformation()Returns theTypeInformationof the id type of the repository.RepositoryInformationSupport.getReturnType(Method method) RepositoryMetadata.getReturnType(Method method) Returns the typeMethodreturn 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 that return TypeInformationMethods in org.springframework.data.repository.query with parameters of type TypeInformationModifier and TypeMethodDescriptionprotected Parameters<?,?> QueryMethod.createParameters(Method method, TypeInformation<?> domainType) Deprecated, for removal: This API element is subject to removal in a future version.Constructors in org.springframework.data.repository.query with parameters of type TypeInformationModifierConstructorDescriptionprotectedParameter(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<?>QueryExecutionConverters.unwrapWrapperTypes(TypeInformation<?> type, TypeInformation<?> reference) Recursively unwraps well known wrapper types from the givenTypeInformationbut aborts at the given reference type.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<?>QueryExecutionConverters.unwrapWrapperTypes(TypeInformation<?> type, TypeInformation<?> reference) Recursively unwraps well known wrapper types from the givenTypeInformationbut aborts at the given reference type.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 TypeClassDescriptionclassDeprecated, 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.COLLECTIONstatic final TypeInformation<List>TypeInformation.LISTstatic final TypeInformation<Map>TypeInformation.MAPstatic final TypeInformation<Object>TypeInformation.OBJECTstatic final TypeInformation<Set>TypeInformation.SETMethods in org.springframework.data.util that return TypeInformationModifier and TypeMethodDescriptionstatic TypeInformation<?>TypeInformation.fromMethodParameter(MethodParameter parameter) Returns a newTypeInformationfor the givenMethodParameter.static <S> TypeInformation<S>ClassTypeInformation.fromReturnTypeOf(Method method) Deprecated.since 3.0.static TypeInformation<?>TypeInformation.fromReturnTypeOf(Method method) Returns aTypeInformationfor the givenMethod.static TypeInformation<?>TypeInformation.fromReturnTypeOf(Method method, Class<?> type) Returns aTypeInformationfor the given method as declared on the given type.TypeInformation.getActualType()Transparently returns theMapvalue 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 forCollections or the key type forMaps.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 aTypeInformationto represent theTypeInformationof the raw type of the current instance.default TypeInformation<?>TypeInformation.getRequiredActualType()Transparently returns theMapvalue 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 forCollections, the key type forMaps or the single generic type if available.default TypeInformation<?>TypeInformation.getRequiredMapValueType()Will return the type of the value in case the underlying type is aMapor throwIllegalStateExceptionif 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 throwIllegalArgumentExceptionif the type information cannot be resolved.default TypeInformation<?>TypeInformation.getRequiredSuperTypeInformation(Class<?> superType) Returns theTypeInformationfor the given raw super type.TypeInformation.getReturnType(Method method) Returns aTypeInformationfor the return type of the givenMethod.TypeInformation.getSuperTypeInformation(Class<?> superType) Returns theTypeInformationfor the given raw super type.default TypeInformation<?>TypeInformation.getUserTypeInformation()Returns the user type of the property if proxied.static <S> TypeInformation<S>Creates a newTypeInformationfor the givenClass.static TypeInformation<?>TypeInformation.of(ResolvableType type) Creates a newTypeInformationfrom 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)TypeInformationusing 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 theTypeInformations for the parameters of the givenConstructor.List<TypeInformation<?>>TypeInformation.getParameterTypes(Method method) Returns theTypeInformations for the parameters of the givenMethod.List<TypeInformation<?>>TypeInformation.getTypeArguments()Returns theTypeInformationfor the type arguments of the currentTypeInformation.Methods in org.springframework.data.util with parameters of type TypeInformationModifier and TypeMethodDescriptionbooleanClassTypeInformation.isAssignableFrom(TypeInformation<?> target) Deprecated, for removal: This API element is subject to removal in a future version.booleanTypeInformation.isAssignableFrom(TypeInformation<?> target) Returns if the currentTypeInformationcan 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)TypeInformationusing 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.
QueryMethod.createParameters(ParametersSource)instead.