Package | Description |
---|---|
org.bson |
Contains the base BSON classes.
|
org.bson.codecs |
This package contains all the default BSON codecs.
|
Modifier and Type | Method and Description |
---|---|
static UuidRepresentation |
UuidRepresentation.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UuidRepresentation[] |
UuidRepresentation.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Field and Description |
---|---|
private UuidRepresentation |
UuidCodec.decoderUuidRepresentation |
private UuidRepresentation |
UuidCodec.encoderUuidRepresentation |
private UuidRepresentation |
UuidCodecProvider.uuidRepresentation |
Constructor and Description |
---|
UuidCodec(UuidRepresentation uuidRepresentation)
The default UUIDRepresentation is JAVA_LEGACY to be compatible with existing documents
|
UuidCodecProvider(UuidRepresentation uuidRepresentation)
Set the UUIDRepresentation to be used in the codec
default is JAVA_LEGACY to be compatible with existing documents
|