|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypeMapper<S>
Interface to define strategies how to store type information in a store specific sink or source.
Method Summary | ||
---|---|---|
TypeInformation<?> |
readType(S source)
Reads the TypeInformation from the given source. |
|
|
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. |
|
void |
writeType(Class<?> type,
S dbObject)
Writes type information for the given type into the given sink. |
|
void |
writeType(TypeInformation<?> type,
S dbObject)
Writes type information for the given TypeInformation into the given sink. |
Method Detail |
---|
TypeInformation<?> readType(S source)
TypeInformation
from the given source.
source
- must not be null.
<T> TypeInformation<? extends T> readType(S source, TypeInformation<T> defaultType)
TypeInformation
from the given source if it is a more concrete type than the given default one.
source
- must not be null.defaultType
-
void writeType(Class<?> type, S dbObject)
type
- must not be null.dbObject
- must not be null.void writeType(TypeInformation<?> type, S dbObject)
TypeInformation
into the given sink.
type
- must not be null.dbObject
- must not be null.
|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |