Class MongoLargeObjectDao
java.lang.Object
dev.getelements.elements.dao.mongo.largeobject.MongoLargeObjectDao
- All Implemented Interfaces:
LargeObjectDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateLargeObject(LargeObject largeObject) Creates a newLargeObject.voiddeleteLargeObject(String objectId) Deletes an instance ofLargeObjectfrom the database.findLargeObject(String objectId) Finds aLargeObjectwith the supplied object id, returning a value equivalent toOptional.empty()if the object cannot be found.findMongoLargeObject(String objectId) dev.morphia.DatastoregetMongoLargeObject(String objectId) voidsetDatastore(dev.morphia.Datastore datastore) voidsetDozerMapper(MapperRegistry dozerMapperRegistry) voidsetMongoDBUtils(MongoDBUtils mongoDBUtils) voidsetValidationHelper(ValidationHelper validationHelper) updateLargeObject(LargeObject largeObject) Updates an existingLargeObject.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.getelements.elements.sdk.dao.LargeObjectDao
getLargeObject
-
Constructor Details
-
MongoLargeObjectDao
public MongoLargeObjectDao()
-
-
Method Details
-
findLargeObject
Description copied from interface:LargeObjectDaoFinds aLargeObjectwith the supplied object id, returning a value equivalent toOptional.empty()if the object cannot be found.- Specified by:
findLargeObjectin interfaceLargeObjectDao- Parameters:
objectId- the object id- Returns:
- the
Optional<LargeObject>
-
createLargeObject
Description copied from interface:LargeObjectDaoCreates a newLargeObject.- Specified by:
createLargeObjectin interfaceLargeObjectDao- Parameters:
largeObject- the large object to create- Returns:
- the
LargeObjectas created in the database
-
updateLargeObject
Description copied from interface:LargeObjectDaoUpdates an existingLargeObject.- Specified by:
updateLargeObjectin interfaceLargeObjectDao- Parameters:
largeObject- the large object to create- Returns:
- the
LargeObjectas created in the database
-
deleteLargeObject
Description copied from interface:LargeObjectDaoDeletes an instance ofLargeObjectfrom the database. Returning the object just before deletion.- Specified by:
deleteLargeObjectin interfaceLargeObjectDao- Parameters:
objectId- the object ID
-
findMongoLargeObject
-
getMongoLargeObject
-
getValidationHelper
-
setValidationHelper
-
getMongoDBUtils
-
setMongoDBUtils
-
getDatastore
public dev.morphia.Datastore getDatastore() -
setDatastore
@Inject public void setDatastore(dev.morphia.Datastore datastore) -
getDozerMapper
-
setDozerMapper
-