java.lang.Object
org.eclipse.persistence.internal.nosql.adapters.mongo.MongoCodecs.TimestampCodec
All Implemented Interfaces:
org.bson.codecs.Codec<Timestamp>, org.bson.codecs.Decoder<Timestamp>, org.bson.codecs.Encoder<Timestamp>
Enclosing class:
MongoCodecs

public static class MongoCodecs.TimestampCodec extends Object implements org.bson.codecs.Codec<Timestamp>
  • Constructor Details

    • TimestampCodec

      public TimestampCodec()
  • Method Details

    • encode

      public void encode(org.bson.BsonWriter writer, Timestamp value, org.bson.codecs.EncoderContext encoderContext)
      Specified by:
      encode in interface org.bson.codecs.Encoder<Timestamp>
    • decode

      public Timestamp decode(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
      Specified by:
      decode in interface org.bson.codecs.Decoder<Timestamp>
    • getEncoderClass

      public Class<Timestamp> getEncoderClass()
      Specified by:
      getEncoderClass in interface org.bson.codecs.Encoder<Timestamp>