Package org.mongojack
Class SerializationOptionsBuilder
- java.lang.Object
-
- org.mongojack.SerializationOptionsBuilder
-
public class SerializationOptionsBuilder extends Object
Builder forSerializationOptions
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SerializationOptions
build()
SerializationOptionsBuilder
withSimpleFilterSerialization(boolean simpleFilterSerialization)
Controls whether or not Bson filters passed to JacksonMongoCollection and the various iterable implementations are serialized with specific knowledge of the document class and its specific bean fields or not.
-
-
-
Method Detail
-
withSimpleFilterSerialization
public SerializationOptionsBuilder withSimpleFilterSerialization(boolean simpleFilterSerialization)
Controls whether or not Bson filters passed to JacksonMongoCollection and the various iterable implementations are serialized with specific knowledge of the document class and its specific bean fields or not.
Enabling simple serialization might be desired if conversion to a BsonDocument and then back produces undesirable side-effects. For most purposes a simple toBsonDocument with the right codec is sufficient.
- Returns:
- whether or not to just use regular codec serialization
-
build
public SerializationOptions build()
-
-