public interface MongoTypeMapper extends TypeMapper<com.mongodb.DBObject>
TypeMapper exposing that DBObjects might contain a type key.| Modifier and Type | Method and Description |
|---|---|
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. |
readType, readType, writeType, writeTypeboolean 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 nullCopyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.