Class MongoBlob
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.mongo.MongoBlob
-
- All Implemented Interfaces:
org.bson.conversions.Bson
public class MongoBlob extends Object implements org.bson.conversions.Bson
TheMongoDB
representation of a blob. Only used by MongoBlobStore
-
-
Constructor Summary
Constructors Constructor Description MongoBlob()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getData()
String
getId()
long
getLastMod()
int
getLevel()
void
setData(byte[] data)
void
setId(String id)
void
setLastMod(long lastMod)
void
setLevel(int level)
<TDocument>
org.bson.BsonDocumenttoBsonDocument(Class<TDocument> tDocumentClass, org.bson.codecs.configuration.CodecRegistry codecRegistry)
-
-
-
Field Detail
-
KEY_ID
public static final String KEY_ID
- See Also:
- Constant Field Values
-
KEY_DATA
public static final String KEY_DATA
- See Also:
- Constant Field Values
-
KEY_LAST_MOD
public static final String KEY_LAST_MOD
- See Also:
- Constant Field Values
-
KEY_LEVEL
public static final String KEY_LEVEL
- See Also:
- Constant Field Values
-
-
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 interfaceorg.bson.conversions.Bson
-
-