Class GridFSLargeObjectBucket
java.lang.Object
dev.getelements.elements.dao.mongo.largeobject.GridFSLargeObjectBucket
- All Implemented Interfaces:
LargeObjectBucket
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteLargeObject(String objectId) Deletes theLargeObjectwith the supplied id as well as the associated metadata.booleancom.mongodb.client.gridfs.GridFSBucketcom.mongodb.client.gridfs.GridFSDownloadStreamreadObject(String objectId) Reads theLargeObject's contentsvoidsetGridFSBucket(com.mongodb.client.gridfs.GridFSBucket gridFSBucket) voidsetLargeObjectDao(LargeObjectDao largeObjectDao) voidsetUploaded(LargeObject largeObject) Forces buckets to mark referenced LO to set state UPLOADEDwriteObject(String objectId) Writes theLargeObject's contents
-
Constructor Details
-
GridFSLargeObjectBucket
public GridFSLargeObjectBucket()
-
-
Method Details
-
writeObject
Description copied from interface:LargeObjectBucketWrites theLargeObject's contents- Specified by:
writeObjectin interfaceLargeObjectBucket- Parameters:
objectId- the object id- Returns:
- the
InputStreamwhich can be used to read theLargeObjectcontents
-
readObject
Description copied from interface:LargeObjectBucketReads theLargeObject's contents- Specified by:
readObjectin interfaceLargeObjectBucket- Parameters:
objectId- the object id- Returns:
- the
InputStreamwhich can be used to read theLargeObjectcontents
-
deleteLargeObject
Description copied from interface:LargeObjectBucketDeletes theLargeObjectwith the supplied id as well as the associated metadata.- Specified by:
deleteLargeObjectin interfaceLargeObjectBucket- Parameters:
objectId- the object id
-
setUploaded
Description copied from interface:LargeObjectBucketForces buckets to mark referenced LO to set state UPLOADED- Specified by:
setUploadedin interfaceLargeObjectBucket- Parameters:
largeObject- the large object
-
exist
-
getLargeObjectDao
-
setLargeObjectDao
-
getGridFSBucket
public com.mongodb.client.gridfs.GridFSBucket getGridFSBucket() -
setGridFSBucket
@Inject public void setGridFSBucket(com.mongodb.client.gridfs.GridFSBucket gridFSBucket)
-