public interface MongoTypeMapper extends TypeMapper<org.bson.conversions.Bson>
TypeMapper exposing that Documents 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(org.bson.Document result,
Set<Class<?>> restrictedTypes)
Writes type restrictions to the given
Document. |
readType, readType, writeType, writeTypeboolean isTypeKey(String key)
void writeTypeRestrictions(org.bson.Document result,
Set<Class<?>> restrictedTypes)
Document. 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.