|
Spring Data Document | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypeMapper
Interface to define strategies how to store type information in a DBObject
.
Method Summary | |
---|---|
boolean |
isTypeKey(String key)
Returns whether the given key is the key being used as type key. |
org.springframework.data.util.TypeInformation<?> |
readType(DBObject dbObject)
Reads the TypeInformation from the given DBObject . |
void |
writeType(Class<?> type,
DBObject dbObject)
Writes type information for the given type into the given DBObject . |
void |
writeType(org.springframework.data.util.TypeInformation<?> type,
DBObject dbObject)
Writes type information for the given TypeInformation into the given DBObject . |
Method Detail |
---|
boolean isTypeKey(String key)
key
-
org.springframework.data.util.TypeInformation<?> readType(DBObject dbObject)
TypeInformation
from the given DBObject
.
dbObject
- must not be null.
void writeType(Class<?> type, DBObject dbObject)
DBObject
.
type
- must not be null.dbObject
- must not be null.void writeType(org.springframework.data.util.TypeInformation<?> type, DBObject dbObject)
TypeInformation
into the given DBObject
.
type
- must not be null.dbObject
- must not be null.
|
Spring Data Document | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |