Class MongoBlob

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

    public class MongoBlob
    extends java.lang.Object
    implements org.bson.conversions.Bson
    The MongoDB representation of a blob. Only used by MongoBlobStore
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String KEY_DATA  
      static java.lang.String KEY_ID  
      static java.lang.String KEY_LAST_MOD  
      static java.lang.String KEY_LEVEL  
    • Constructor Summary

      Constructors 
      Constructor Description
      MongoBlob()
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getData()  
      java.lang.String getId()  
      long getLastMod()  
      int getLevel()  
      void setData​(byte[] data)  
      void setId​(java.lang.String id)  
      void setLastMod​(long lastMod)  
      void setLevel​(int level)  
      <TDocument>
      org.bson.BsonDocument
      toBsonDocument​(java.lang.Class<TDocument> tDocumentClass, org.bson.codecs.configuration.CodecRegistry codecRegistry)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MongoBlob

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

      • getId

        public java.lang.String getId()
      • setId

        public void setId​(java.lang.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​(java.lang.Class<TDocument> tDocumentClass,
                                                                org.bson.codecs.configuration.CodecRegistry codecRegistry)
        Specified by:
        toBsonDocument in interface org.bson.conversions.Bson