Package org.bson.codecs
Class UuidCodec
java.lang.Object
org.bson.codecs.UuidCodec
- Direct Known Subclasses:
OverridableUuidRepresentationUuidCodec
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Encodes and decodes
UUID objects.- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.The constructor for UUIDCodec, default is JAVA_LEGACYUuidCodec(UuidRepresentation uuidRepresentation) Deprecated.The default UUIDRepresentation is JAVA_LEGACY to be compatible with existing documents -
Method Summary
Modifier and TypeMethodDescriptiondecode(BsonReader reader, DecoderContext decoderContext) Deprecated.Decodes a BSON value from the given reader into an instance of the type parameterT.voidencode(BsonWriter writer, UUID value, EncoderContext encoderContext) Deprecated.Encode an instance of the type parameterTinto a BSON value.Deprecated.Returns the Class instance that this encodes.Deprecated.TheUuidRepresentationwith which this instance is configuredtoString()Deprecated.
-
Constructor Details
-
UuidCodec
Deprecated.The default UUIDRepresentation is JAVA_LEGACY to be compatible with existing documents- Parameters:
uuidRepresentation- the representation of UUID- See Also:
-
UuidCodec
public UuidCodec()Deprecated.The constructor for UUIDCodec, default is JAVA_LEGACY
-
-
Method Details
-
getUuidRepresentation
Deprecated.TheUuidRepresentationwith which this instance is configured- Returns:
- the uuid representation
- Since:
- 3.12
-
encode
Deprecated.Description copied from interface:EncoderEncode an instance of the type parameterTinto a BSON value. -
decode
Deprecated.Description copied from interface:DecoderDecodes a BSON value from the given reader into an instance of the type parameterT. -
getEncoderClass
Deprecated.Description copied from interface:EncoderReturns the Class instance that this encodes. This is necessary because Java does not reify generic types.- Specified by:
getEncoderClassin interfaceEncoder<UUID>- Returns:
- the Class instance that this encodes.
-
toString
Deprecated.
-