Package | Description |
---|---|
org.springframework.data.convert |
General purpose conversion framework to read objects from a data store abstraction and write it back.
|
org.springframework.data.mapping |
Base package for the mapping subsystem.
|
org.springframework.data.mapping.context |
Mapping context API and implementation base classes.
|
org.springframework.data.mapping.model |
Core implementation of the mapping subsystem's model.
|
org.springframework.data.projection |
Projection subsystem.
|
org.springframework.data.querydsl.binding |
Base classes to implement CDI support for repositories.
|
org.springframework.data.repository.core |
Core abstractions for repository implementation.
|
org.springframework.data.repository.core.support |
Base classes to implement repositories for various data stores.
|
org.springframework.data.repository.util |
Utility classes for repository implementations.
|
org.springframework.data.util |
Core utility APIs such as a type information framework to resolve generic types.
|
org.springframework.data.web.querydsl |
Querydsl-specific web support.
|
Modifier and Type | Method and Description |
---|---|
protected TypeInformation<?> |
DefaultTypeMapper.getFallbackTypeFor(S source)
Returns the type fallback
TypeInformation in case none could be extracted from the given source. |
TypeInformation<?> |
TypeMapper.readType(S source)
Reads the
TypeInformation from the given source. |
TypeInformation<?> |
DefaultTypeMapper.readType(S source) |
<T> TypeInformation<? extends T> |
TypeMapper.readType(S source,
TypeInformation<T> defaultType)
Returns the
TypeInformation from the given source if it is a more concrete type than the given default one. |
<T> TypeInformation<? extends T> |
DefaultTypeMapper.readType(S source,
TypeInformation<T> basicType) |
TypeInformation<?> |
ConfigurableTypeInformationMapper.resolveTypeFrom(Alias alias) |
TypeInformation<?> |
SimpleTypeInformationMapper.resolveTypeFrom(Alias alias)
Returns the
TypeInformation that shall be used when the given String value is found as type hint. |
TypeInformation<?> |
MappingContextTypeInformationMapper.resolveTypeFrom(Alias alias) |
TypeInformation<?> |
TypeInformationMapper.resolveTypeFrom(Alias alias)
Returns the actual
TypeInformation to be used for the given alias. |
Modifier and Type | Method and Description |
---|---|
Alias |
ConfigurableTypeInformationMapper.createAliasFor(TypeInformation<?> type) |
Alias |
SimpleTypeInformationMapper.createAliasFor(TypeInformation<?> type)
Turn the given type information into the String representation that shall be stored.
|
Alias |
MappingContextTypeInformationMapper.createAliasFor(TypeInformation<?> type) |
Alias |
TypeInformationMapper.createAliasFor(TypeInformation<?> type)
Returns the alias to be used for the given
TypeInformation . |
protected Alias |
DefaultTypeMapper.getAliasFor(TypeInformation<?> info)
Returns the alias to be used for the given
TypeInformation . |
default <T> T |
ValueConversionContext.read(Object value,
TypeInformation<T> target)
Reads the value as an instance of
type . |
<T> TypeInformation<? extends T> |
TypeMapper.readType(S source,
TypeInformation<T> defaultType)
Returns the
TypeInformation from the given source if it is a more concrete type than the given default one. |
<T> TypeInformation<? extends T> |
DefaultTypeMapper.readType(S source,
TypeInformation<T> basicType) |
default <T> T |
ValueConversionContext.write(Object value,
TypeInformation<T> target)
Write the value as an instance of
type . |
void |
TypeMapper.writeType(TypeInformation<?> type,
S dbObject)
Writes type information for the given
TypeInformation into the given sink. |
void |
DefaultTypeMapper.writeType(TypeInformation<?> info,
S sink) |
Modifier and Type | Method and Description |
---|---|
TypeInformation<?> |
PersistentProperty.getAssociationTargetTypeInformation()
Return the type the property refers to in case it's an association, i.e.
|
TypeInformation<?> |
PropertyPath.getOwningType()
Returns the owning type of the
PropertyPath . |
TypeInformation<?> |
PropertyReferenceException.getType()
Returns the type the property could not be found on.
|
TypeInformation<T> |
Parameter.getType()
Returns the
TypeInformation of the parameter. |
TypeInformation<T> |
PersistentEntity.getTypeInformation()
Returns the
TypeInformation backing this PersistentEntity . |
TypeInformation<?> |
PropertyPath.getTypeInformation() |
TypeInformation<?> |
PersistentProperty.getTypeInformation()
Returns the
TypeInformation of the property. |
Modifier and Type | Method and Description |
---|---|
Iterable<? extends TypeInformation<?>> |
PersistentProperty.getPersistentEntityTypeInformation()
Returns the detected
TypeInformations if the property references a
PersistentEntity . |
Iterable<? extends TypeInformation<?>> |
PersistentProperty.getPersistentEntityTypes()
Deprecated.
since 2.6 for removal in 3.0. Use
PersistentProperty.getPersistentEntityTypeInformation() instead. |
Modifier and Type | Method and Description |
---|---|
static PropertyPath |
PropertyPath.from(String source,
TypeInformation<?> type)
|
Constructor and Description |
---|
Parameter(String name,
TypeInformation<T> type,
Annotation[] annotations,
PersistentEntity<T,P> entity)
|
PropertyReferenceException(String propertyName,
TypeInformation<?> type,
List<PropertyPath> alreadyResolvedPah)
Creates a new
PropertyReferenceException . |
Modifier and Type | Method and Description |
---|---|
TypeInformation<?> |
InvalidPersistentPropertyPath.getType()
Returns the type the source property path was attempted to be resolved on.
|
TypeInformation<?> |
PersistentEntities.getTypeUltimatelyReferredToBy(PersistentProperty<?> property)
Returns the type the given
PersistentProperty ultimately refers to. |
Modifier and Type | Method and Description |
---|---|
Streamable<TypeInformation<?>> |
PersistentEntities.getManagedTypes()
Returns all
TypeInformation exposed by the registered MappingContext s. |
Collection<TypeInformation<?>> |
MappingContext.getManagedTypes()
|
Collection<TypeInformation<?>> |
AbstractMappingContext.getManagedTypes() |
Modifier and Type | Method and Description |
---|---|
protected Optional<E> |
AbstractMappingContext.addPersistentEntity(TypeInformation<?> typeInformation)
Adds the given
TypeInformation to the MappingContext . |
protected abstract <T> E |
AbstractMappingContext.createPersistentEntity(TypeInformation<T> typeInformation)
Creates the concrete
PersistentEntity instance. |
E |
MappingContext.getPersistentEntity(TypeInformation<?> type)
Returns a
PersistentEntity for the given TypeInformation . |
E |
AbstractMappingContext.getPersistentEntity(TypeInformation<?> type) |
default E |
MappingContext.getRequiredPersistentEntity(TypeInformation<?> type)
Returns a
PersistentEntity for the given TypeInformation . |
protected boolean |
AbstractMappingContext.shouldCreatePersistentEntityFor(TypeInformation<?> type)
Returns whether a
PersistentEntity instance should be created for the given TypeInformation . |
Constructor and Description |
---|
InvalidPersistentPropertyPath(String source,
TypeInformation<?> type,
String unresolvableSegment,
PersistentPropertyPath<? extends PersistentProperty<?>> resolvedPath)
Creates a new
InvalidPersistentPropertyPath for the given resolved path and message. |
Modifier and Type | Method and Description |
---|---|
protected TypeInformation<?> |
AbstractPersistentProperty.getActualTypeInformation() |
TypeInformation<?> |
AbstractPersistentProperty.getAssociationTargetTypeInformation() |
TypeInformation<?> |
AnnotationBasedPersistentProperty.getAssociationTargetTypeInformation() |
TypeInformation<?> |
AbstractPersistentProperty.getTypeInformation() |
TypeInformation<T> |
BasicPersistentEntity.getTypeInformation() |
Modifier and Type | Method and Description |
---|---|
Iterable<? extends TypeInformation<?>> |
AbstractPersistentProperty.getPersistentEntityTypeInformation() |
Iterable<? extends TypeInformation<?>> |
AbstractPersistentProperty.getPersistentEntityTypes() |
Modifier and Type | Method and Description |
---|---|
static Property |
Property.of(TypeInformation<?> type,
Field field)
Creates a new
Property backed by the given field. |
static Property |
Property.of(TypeInformation<?> type,
Field field,
PropertyDescriptor descriptor)
|
static Property |
Property.of(TypeInformation<?> type,
PropertyDescriptor descriptor)
Creates a new
Property for the given PropertyDescriptor . |
Constructor and Description |
---|
BasicPersistentEntity(TypeInformation<T> information)
Creates a new
BasicPersistentEntity from the given TypeInformation . |
BasicPersistentEntity(TypeInformation<T> information,
Comparator<P> comparator)
|
Modifier and Type | Method and Description |
---|---|
TypeInformation<?> |
EntityProjection.getActualDomainType() |
TypeInformation<?> |
EntityProjection.getActualMappedType() |
TypeInformation<D> |
EntityProjection.getDomainType() |
TypeInformation<M> |
EntityProjection.getMappedType() |
Modifier and Type | Method and Description |
---|---|
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.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.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.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<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.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.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.
|
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.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<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.
|
Modifier and Type | Method and Description |
---|---|
QuerydslBindings |
QuerydslBindingsFactory.createBindingsFor(TypeInformation<?> domainType)
Creates the
QuerydslBindings to be used using for the given domain type. |
QuerydslBindings |
QuerydslBindingsFactory.createBindingsFor(TypeInformation<?> domainType,
Class<? extends QuerydslBinderCustomizer<?>> customizer)
Creates the
QuerydslBindings to be used using for the given domain type and a pre-defined
QuerydslBinderCustomizer . |
com.querydsl.core.types.Predicate |
QuerydslPredicateBuilder.getPredicate(TypeInformation<?> type,
MultiValueMap<String,?> values,
QuerydslBindings bindings)
|
Modifier and Type | Method and Description |
---|---|
TypeInformation<?> |
RepositoryMetadata.getDomainTypeInformation()
Returns the
TypeInformation of the domain type the repository is declared to manage. |
TypeInformation<?> |
RepositoryMetadata.getIdTypeInformation()
Returns the
TypeInformation of the id type of the repository. |
TypeInformation<?> |
RepositoryMetadata.getReturnType(Method method)
Returns the type
Method return type as it is declared in the repository. |
Modifier and Type | Method and Description |
---|---|
TypeInformation<?> |
AnnotationRepositoryMetadata.getDomainTypeInformation() |
TypeInformation<?> |
DefaultRepositoryMetadata.getDomainTypeInformation() |
TypeInformation<?> |
AnnotationRepositoryMetadata.getIdTypeInformation() |
TypeInformation<?> |
DefaultRepositoryMetadata.getIdTypeInformation() |
TypeInformation<?> |
AbstractRepositoryMetadata.getReturnType(Method method) |
Modifier and Type | Method and Description |
---|---|
static TypeInformation<?> |
QueryExecutionConverters.unwrapWrapperTypes(TypeInformation<?> type)
Recursively unwraps well known wrapper types from the given
TypeInformation . |
static TypeInformation<?> |
ReactiveWrapperConverters.unwrapWrapperTypes(TypeInformation<?> type)
Recursively unwraps well known wrapper types from the given
TypeInformation . |
Modifier and Type | Method and Description |
---|---|
static TypeInformation<?> |
QueryExecutionConverters.unwrapWrapperTypes(TypeInformation<?> type)
Recursively unwraps well known wrapper types from the given
TypeInformation . |
static TypeInformation<?> |
ReactiveWrapperConverters.unwrapWrapperTypes(TypeInformation<?> type)
Recursively unwraps well known wrapper types from the given
TypeInformation . |
Modifier and Type | Class and Description |
---|---|
class |
ClassTypeInformation<S>
TypeInformation for a plain Class . |
class |
ParentTypeAwareTypeInformation<S>
Base class for
TypeInformation implementations that need parent type awareness. |
Modifier and Type | Method and Description |
---|---|
protected TypeInformation<?> |
ParentTypeAwareTypeInformation.createInfo(Type fieldType) |
static <S> TypeInformation<S> |
ClassTypeInformation.fromReturnTypeOf(Method method)
Creates a
TypeInformation from the given method's return type. |
TypeInformation<?> |
TypeInformation.getActualType()
Transparently returns the
Map value type if the type is a Map , returns the
component type if the type isCollectionLike() or the simple type if none of this applies. |
TypeInformation<?> |
TypeInformation.getComponentType()
Returns the component type for
Collection s or the key type for Map s. |
TypeInformation<?> |
TypeInformation.getMapValueType()
Will return the type of the value in case the underlying type is a
Map . |
TypeInformation<?> |
TypeInformation.getProperty(String property)
Returns the property information for the property with the given name.
|
default TypeInformation<?> |
TypeInformation.getRequiredActualType()
Transparently returns the
Map value type if the type is a Map , returns the
component type if the type isCollectionLike() or the simple type if none of this applies. |
default TypeInformation<?> |
TypeInformation.getRequiredComponentType()
Returns the component type for
Collection s, the key type for Map 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 a
Map or throw
IllegalStateException 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 throw
IllegalArgumentException if
the type information cannot be resolved. |
default TypeInformation<?> |
TypeInformation.getRequiredSuperTypeInformation(Class<?> superType)
Returns the
TypeInformation for the given raw super type. |
TypeInformation<?> |
TypeInformation.getReturnType(Method method)
Returns a
TypeInformation for the return type of the given Method . |
TypeInformation<?> |
TypeInformation.getSuperTypeInformation(Class<?> superType)
Returns the
TypeInformation for the given raw super type. |
default TypeInformation<?> |
TypeInformation.getUserTypeInformation()
Returns the user type of the property if proxied.
|
TypeInformation<? extends S> |
ClassTypeInformation.specialize(ClassTypeInformation<?> type) |
TypeInformation<? extends S> |
TypeInformation.specialize(ClassTypeInformation<?> type)
Specializes the given (raw)
ClassTypeInformation 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 given
TypeInformation . |
Modifier and Type | Method and Description |
---|---|
List<TypeInformation<?>> |
TypeInformation.getParameterTypes(Constructor<?> constructor)
Returns the
TypeInformation s for the parameters of the given Constructor . |
List<TypeInformation<?>> |
TypeInformation.getParameterTypes(Method method)
Returns the
TypeInformation s for the parameters of the given Method . |
List<TypeInformation<?>> |
TypeInformation.getTypeArguments()
Returns the
TypeInformation for the type arguments of the current TypeInformation . |
Modifier and Type | Method and Description |
---|---|
boolean |
ClassTypeInformation.isAssignableFrom(TypeInformation<?> target) |
boolean |
TypeInformation.isAssignableFrom(TypeInformation<?> target)
Returns if the current
TypeInformation can be safely assigned to the given one. |
static TypeInformation<?> |
NullableWrapperConverters.unwrapActualType(TypeInformation<?> type)
Recursively unwraps well known wrapper types from the given
TypeInformation . |
Modifier and Type | Method and Description |
---|---|
protected static TypeInformation<?> |
QuerydslPredicateArgumentResolverSupport.extractTypeInfo(MethodParameter parameter,
MergedAnnotation<QuerydslPredicate> predicateAnnotation)
Obtains the domain type information from the given method parameter.
|
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.