Class MongoBlob

  • All Implemented Interfaces:
    org.bson.conversions.Bson

    public class MongoBlob
    extends Object
    implements org.bson.conversions.Bson
    The MongoDB representation of a blob. Only used by MongoBlobStore
    • Constructor Detail

      • MongoBlob

        public MongoBlob()
        Default constructor. Needed for MongoDB serialization.
    • Method Detail

      • getId

        public String getId()
      • setId

        public void setId​(String id)
      • getData

        public byte[] getData()
      • setData

        public void setData​(byte[] data)
      • getLevel

        public int getLevel()
      • setLevel

        public void setLevel​(int level)
      • getLastMod

        public long getLastMod()
      • setLastMod

        public void setLastMod​(long lastMod)
      • toBsonDocument

        public <TDocument> org.bson.BsonDocument toBsonDocument​(Class<TDocument> tDocumentClass,
                                                                org.bson.codecs.configuration.CodecRegistry codecRegistry)
        Specified by:
        toBsonDocument in interface org.bson.conversions.Bson