|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.convert.MappingContextTypeInformationMapper
public class MappingContextTypeInformationMapper
TypeInformationMapper implementation that can be either set up using a MappingContext or manually set
up Map of String aliases to types. If a MappingContext is used the Map will be build
inspecting the PersistentEntity instances for type alias information.
| Constructor Summary | |
|---|---|
MappingContextTypeInformationMapper(MappingContext<? extends PersistentEntity<?,?>,?> mappingContext)
Creates a MappingContextTypeInformationMapper from the given MappingContext. |
|
| Method Summary | |
|---|---|
Object |
createAliasFor(TypeInformation<?> type)
Returns the alias to be used for the given TypeInformation. |
TypeInformation<?> |
resolveTypeFrom(Object alias)
Returns the actual TypeInformation to be used for the given alias. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MappingContextTypeInformationMapper(MappingContext<? extends PersistentEntity<?,?>,?> mappingContext)
MappingContextTypeInformationMapper from the given MappingContext. Inspects all
PersistentEntity instances for alias information and builds a Map of aliases to types from it.
mappingContext - must not be null.| Method Detail |
|---|
public Object createAliasFor(TypeInformation<?> type)
TypeInformationMapperTypeInformation.
createAliasFor in interface TypeInformationMapperpublic TypeInformation<?> resolveTypeFrom(Object alias)
TypeInformationMapperTypeInformation to be used for the given alias.
resolveTypeFrom in interface TypeInformationMapperalias - can be null.
|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||