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
.void
deleteLargeObject
(String objectId) Deletes an instance ofLargeObject
from the database.findLargeObject
(String objectId) Finds aLargeObject
with the supplied object id, returning a value equivalent toOptional.empty()
if the object cannot be found.findMongoLargeObject
(String objectId) dev.morphia.Datastore
getMongoLargeObject
(String objectId) void
setDatastore
(dev.morphia.Datastore datastore) void
setDozerMapper
(MapperRegistry dozerMapperRegistry) void
setMongoDBUtils
(MongoDBUtils mongoDBUtils) void
setValidationHelper
(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, wait
Methods inherited from interface dev.getelements.elements.sdk.dao.LargeObjectDao
getLargeObject
-
Constructor Details
-
MongoLargeObjectDao
public MongoLargeObjectDao()
-
-
Method Details
-
findLargeObject
Description copied from interface:LargeObjectDao
Finds aLargeObject
with the supplied object id, returning a value equivalent toOptional.empty()
if the object cannot be found.- Specified by:
findLargeObject
in interfaceLargeObjectDao
- Parameters:
objectId
- the object id- Returns:
- the
Optional<LargeObject>
-
createLargeObject
Description copied from interface:LargeObjectDao
Creates a newLargeObject
.- Specified by:
createLargeObject
in interfaceLargeObjectDao
- Parameters:
largeObject
- the large object to create- Returns:
- the
LargeObject
as created in the database
-
updateLargeObject
Description copied from interface:LargeObjectDao
Updates an existingLargeObject
.- Specified by:
updateLargeObject
in interfaceLargeObjectDao
- Parameters:
largeObject
- the large object to create- Returns:
- the
LargeObject
as created in the database
-
deleteLargeObject
Description copied from interface:LargeObjectDao
Deletes an instance ofLargeObject
from the database. Returning the object just before deletion.- Specified by:
deleteLargeObject
in 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
-