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.querydsl.binding | |
org.springframework.data.util |
Core utility APIs such as a type information framework to resolve generic types.
|
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<?> |
TypeInformationMapper.resolveTypeFrom(Object alias)
Returns the actual
TypeInformation to be used for the given alias. |
Modifier and Type | Method and Description |
---|---|
Object |
TypeInformationMapper.createAliasFor(TypeInformation<?> type)
Returns the alias to be used for the given
TypeInformation . |
String |
SimpleTypeInformationMapper.createAliasFor(TypeInformation<?> type)
Turn the given type information into the String representation that shall be stored.
|
Object |
MappingContextTypeInformationMapper.createAliasFor(TypeInformation<?> type) |
Object |
ConfigurableTypeInformationMapper.createAliasFor(TypeInformation<?> type) |
protected Object |
DefaultTypeMapper.getAliasFor(TypeInformation<?> info)
Returns the alias to be used for the given
TypeInformation . |
<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) |
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<?> |
PropertyPath.getOwningType()
Returns the owning type of the
PropertyPath . |
TypeInformation<?> |
PropertyReferenceException.getType()
Returns the type the property could not be found on.
|
TypeInformation<T> |
PreferredConstructor.Parameter.getType()
Returns the
TypeInformation of the parameter. |
TypeInformation<?> |
PersistentProperty.getTypeInformation()
Returns the
TypeInformation of the property. |
TypeInformation<T> |
PersistentEntity.getTypeInformation()
Returns the
TypeInformation backing this PersistentEntity . |
Modifier and Type | Method and Description |
---|---|
Iterable<? extends TypeInformation<?>> |
PersistentProperty.getPersistentEntityType()
Returns the
TypeInformation if the property references a PersistentEntity . |
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)
Creates a new
PreferredConstructor.Parameter with the given name, TypeInformation as well as an array of
Annotation s. |
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.
|
Modifier and Type | Method and Description |
---|---|
Iterable<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 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) |
protected boolean |
AbstractMappingContext.shouldCreatePersistentEntityFor(TypeInformation<?> type)
Returns whether a
PersistentEntity instance should be created for the given TypeInformation . |
Modifier and Type | Field and Description |
---|---|
protected TypeInformation<?> |
AbstractPersistentProperty.information |
Modifier and Type | Method and Description |
---|---|
TypeInformation<T> |
BasicPersistentEntity.getTypeInformation() |
TypeInformation<?> |
AbstractPersistentProperty.getTypeInformation() |
Modifier and Type | Method and Description |
---|---|
Iterable<? extends TypeInformation<?>> |
AbstractPersistentProperty.getPersistentEntityType() |
Constructor and Description |
---|
BasicPersistentEntity(TypeInformation<T> information)
Creates a new
BasicPersistentEntity from the given TypeInformation . |
BasicPersistentEntity(TypeInformation<T> information,
Comparator<P> comparator)
|
PreferredConstructorDiscoverer(TypeInformation<T> type,
PersistentEntity<T,P> entity)
Creates a new
PreferredConstructorDiscoverer for the given type. |
Modifier and Type | Method and Description |
---|---|
QuerydslBindings |
QuerydslBindingsFactory.createBindingsFor(Class<? extends QuerydslBinderCustomizer<?>> customizer,
TypeInformation<?> domainType)
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,String> values,
QuerydslBindings bindings)
|
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 fieldname)
Returns the property information for the property with the given name.
|
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. |
TypeInformation<?> |
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. |
TypeInformation<?> |
ClassTypeInformation.specialize(ClassTypeInformation<?> type) |
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 |
TypeInformation.isAssignableFrom(TypeInformation<?> target)
Returns if the current
TypeInformation can be safely assigned to the given one. |
boolean |
ClassTypeInformation.isAssignableFrom(TypeInformation<?> target) |
Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.