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 |
---|---|
class |
DocumentToDBRefTransformer
A Document to DBRef Transformer.
|
Modifier and Type | Method and Description |
---|---|
static List<Transformer> |
BSON.getDecodingHooks(Class<?> clazz)
Returns the decoding hook(s) associated with the specific class
|
static List<Transformer> |
BSON.getEncodingHooks(Class<?> clazz)
Returns the encoding hook(s) associated with the specified class.
|
Modifier and Type | Method and Description |
---|---|
static void |
BSON.addDecodingHook(Class<?> clazz,
Transformer transformer)
Registers a
Transformer to use when decoding a specific class from BSON. |
static void |
BSON.addEncodingHook(Class<?> clazz,
Transformer transformer)
Registers a
Transformer to use to encode a specific class into BSON. |
static void |
BSON.removeDecodingHook(Class<?> clazz,
Transformer transformer)
Remove a specific encoding hook for a specific class.
|
static void |
BSON.removeEncodingHook(Class<?> clazz,
Transformer transformer)
Remove a specific encoding hook for a specific class.
|
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 . |
MapCodec(CodecRegistry registry,
BsonTypeClassMap bsonTypeClassMap,
Transformer valueTransformer)
Construct a new instance with the given registry and BSON type class map.
|
MapCodecProvider(BsonTypeClassMap bsonTypeClassMap,
Transformer valueTransformer)
Construct a new instance with the given instance of
BsonTypeClassMap . |
MapCodecProvider(Transformer valueTransformer)
Construct a new instance with a default
BsonTypeClassMap and the given Transformer . |
Copyright © 2018. All rights reserved.