Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
org.bson |
Contains the base BSON classes.
|
org.bson.codecs |
This package contains all the default BSON codecs.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
DocumentToDBRefTransformer |
Modifier and Type | Field and Description |
---|---|
private static ClassMap<java.util.List<Transformer>> |
BSON.decodingHooks |
private static ClassMap<java.util.List<Transformer>> |
BSON.encodingHooks |
Modifier and Type | Method and Description |
---|---|
static java.util.List<Transformer> |
BSON.getDecodingHooks(java.lang.Class<?> clazz)
Returns the decoding hook(s) associated with the specific class
|
static java.util.List<Transformer> |
BSON.getEncodingHooks(java.lang.Class<?> clazz)
Returns the encoding hook(s) associated with the specified class.
|
Modifier and Type | Method and Description |
---|---|
static void |
BSON.addDecodingHook(java.lang.Class<?> clazz,
Transformer transformer)
Registers a
Transformer to use when decoding a specific class from BSON. |
static void |
BSON.addEncodingHook(java.lang.Class<?> clazz,
Transformer transformer)
Registers a
Transformer to use to encode a specific class into BSON. |
static void |
BSON.removeDecodingHook(java.lang.Class<?> clazz,
Transformer transformer)
Remove a specific encoding hook for a specific class.
|
static void |
BSON.removeEncodingHook(java.lang.Class<?> clazz,
Transformer transformer)
Remove a specific encoding hook for a specific class.
|
Modifier and Type | Field and Description |
---|---|
private Transformer |
IterableCodec.valueTransformer |
private Transformer |
IterableCodecProvider.valueTransformer |
private Transformer |
DocumentCodecProvider.valueTransformer |
private Transformer |
DocumentCodec.valueTransformer |
Constructor and Description |
---|
DocumentCodec(CodecRegistry registry,
BsonTypeClassMap bsonTypeClassMap,
Transformer valueTransformer)
Construct a new instance with the given registry and BSON type class map.
|
DocumentCodecProvider(BsonTypeClassMap bsonTypeClassMap,
Transformer valueTransformer)
Construct a new instance with the given instance of
BsonTypeClassMap . |
DocumentCodecProvider(Transformer valueTransformer)
Construct a new instance with a default
BsonTypeClassMap and the given Transformer . |
IterableCodec(CodecRegistry registry,
BsonTypeClassMap bsonTypeClassMap,
Transformer valueTransformer)
Construct a new instance with the given
CodecRegistry and BsonTypeClassMap . |
IterableCodecProvider(BsonTypeClassMap bsonTypeClassMap,
Transformer valueTransformer)
Construct a new instance with the given instance of
BsonTypeClassMap and Transformer . |
IterableCodecProvider(Transformer valueTransformer)
Construct a new instance with a default
BsonTypeClassMap and the given Transformer . |