Uses of Interface
org.springframework.data.core.TypeInformation
Packages that use TypeInformation
Package
Description
General purpose conversion framework to read objects from a data store abstraction and write it back.
Provides basic classes for type handling and other core helpers that are not specific to any part of the framework.
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.
Querydsl-specific web support.
-
Uses of TypeInformation in org.springframework.data.convert
Methods in org.springframework.data.convert that return TypeInformationModifier and TypeMethodDescriptionprotected @Nullable TypeInformation<?> DefaultTypeMapper.getFallbackTypeFor(S source) Returns the type fallbackTypeInformationin case none could be extracted from the given source.@Nullable TypeInformation<?> <T> TypeInformation<? extends T> DefaultTypeMapper.readType(S source, TypeInformation<T> basicType) @Nullable TypeInformation<?> 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.@Nullable TypeInformation<?> ConfigurableTypeInformationMapper.resolveTypeFrom(Alias alias) @Nullable TypeInformation<?> MappingContextTypeInformationMapper.resolveTypeFrom(Alias alias) @Nullable TypeInformation<?> SimpleTypeInformationMapper.resolveTypeFrom(Alias alias) Returns theTypeInformationthat shall be used when the givenStringvalue is found as type hint.@Nullable TypeInformation<?> 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> @Nullable TValueConversionContext.read(@Nullable 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> @Nullable TValueConversionContext.write(@Nullable 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.core
Fields in org.springframework.data.core 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.core that return TypeInformationModifier and TypeMethodDescriptionstatic TypeInformation<?> TypeInformation.fromMethodParameter(MethodParameter parameter) Returns a newTypeInformationfor the givenMethodParameter.static TypeInformation<?> TypeInformation.fromReturnTypeOf(Method method) Returns aTypeInformationfor the givenMethod.static TypeInformation<?> TypeInformation.fromReturnTypeOf(Method method, @Nullable Class<?> type) Returns aTypeInformationfor the given method as declared on the given type.@Nullable TypeInformation<?> TypeInformation.getActualType()Transparently returns theMapvalue type if the type is aMap, returns the component type if the typeTypeInformation.isCollectionLike()or the simple type if none of this applies.@Nullable TypeInformation<?> TypeInformation.getComponentType()Returns the component type forCollections or the key type forMaps.@Nullable TypeInformation<?> TypeInformation.getMapValueType()Will return the type of the value in case the underlying type is aMap.PropertyPath.getOwningType()Returns the owning type of thePropertyPath.@Nullable TypeInformation<?> 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 typeTypeInformation.isCollectionLike()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.@Nullable TypeInformation<?> TypeInformation.getSuperTypeInformation(Class<?> superType) Returns theTypeInformationfor the given raw super type.PropertyReferenceException.getType()Returns the type the property could not be found on.PropertyPath.getTypeInformation()Returns the type information of the property.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.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.core 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.core with parameters of type TypeInformationModifier and TypeMethodDescriptionstatic PropertyPathPropertyPath.from(String source, TypeInformation<?> type) booleanTypeInformation.isAssignableFrom(TypeInformation<?> target) Returns if the currentTypeInformationcan be safely assigned to the given one.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.Constructors in org.springframework.data.core with parameters of type TypeInformationModifierConstructorDescriptionPropertyReferenceException(String propertyName, TypeInformation<?> type, List<? extends PropertyPath> alreadyResolvedPah) Creates a newPropertyReferenceException. -
Uses of TypeInformation in org.springframework.data.mapping
Methods in org.springframework.data.mapping that return TypeInformationModifier and TypeMethodDescription@Nullable TypeInformation<?> PersistentProperty.getAssociationTargetTypeInformation()Return the type the property refers to in case it's an association, i.e.Parameter.getType()Returns theTypeInformationof the parameter.PersistentEntity.getTypeInformation()Returns theTypeInformationbacking thisPersistentEntity.PersistentProperty.getTypeInformation()Returns theTypeInformationof the property.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.Constructors in org.springframework.data.mapping with parameters of type TypeInformationModifierConstructorDescriptionParameter(@Nullable String name, TypeInformation<T> type, Annotation[] annotations, @Nullable PersistentEntity<T, P> entity) -
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.@Nullable EAbstractMappingContext.getPersistentEntity(TypeInformation<?> type) @Nullable EMappingContext.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()@Nullable TypeInformation<?> AbstractPersistentProperty.getAssociationTargetTypeInformation()@Nullable TypeInformation<?> 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, @Nullable 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.getReturnedDomainTypeInformation(Method method) default TypeInformation<?> RepositoryMetadata.getReturnedDomainTypeInformation(Method method) Returns the domain type information returned by the givenMethod.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.getReturnedDomainTypeInformation(Method method) AbstractRepositoryMetadata.getReturnType(Method method) -
Uses of TypeInformation in org.springframework.data.repository.query
Methods in org.springframework.data.repository.query that return TypeInformationConstructors 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.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.