|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MongoTypeMapper
Mongo-specific TypeMapper exposing that DBObjects might contain a type key.
| Method Summary | |
|---|---|
boolean |
isTypeKey(String key)
Returns whether the given key is the type key. |
void |
writeTypeRestrictions(com.mongodb.DBObject result,
Set<Class<?>> restrictedTypes)
Writes type restrictions to the given DBObject. |
| Methods inherited from interface org.springframework.data.convert.TypeMapper |
|---|
readType, readType, writeType, writeType |
| Method Detail |
|---|
boolean isTypeKey(String key)
void writeTypeRestrictions(com.mongodb.DBObject result,
Set<Class<?>> restrictedTypes)
DBObject. This usually results in an $in-clause to be
generated that restricts the type-key (e.g. _class) to be in the set of type aliases for the given
restrictedTypes.
result - must not be nullrestrictedTypes - must not be null
|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||