Package org.mongojack
Interface SerializationOptions
-
public interface SerializationOptions
Used to customize various aspects of serialization inside JacksonMongoCollection. Pass this to the builder for the collection.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static SerializationOptionsBuilder
builder()
boolean
isSimpleFilterSerialization()
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
-
isSimpleFilterSerialization
boolean isSimpleFilterSerialization()
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
-
builder
static SerializationOptionsBuilder builder()
-
-