Interface MongoDbDocumentUpdate
-
- All Superinterfaces:
adams.core.Destroyable
,adams.flow.core.FlowContextHandler
,adams.core.option.OptionHandler
,adams.core.QuickInfoSupporter
- All Known Subinterfaces:
MongoDbDocumentAppend
- All Known Implementing Classes:
AbstractAppend
,AbstractMongoDbDocumentUpdate
,Append
,AppendStorage
,AppendVariables
,PassThrough
,Remove
public interface MongoDbDocumentUpdate extends adams.core.option.OptionHandler, adams.flow.core.FlowContextHandler, adams.core.QuickInfoSupporter
Interface for MongoDB document update schemes.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
update(com.mongodb.client.MongoCollection coll, org.bson.Document doc)
Updates the document.
-
-
-
Method Detail
-
update
String update(com.mongodb.client.MongoCollection coll, org.bson.Document doc)
Updates the document.- Parameters:
coll
- the collection the document belongs todoc
- the document to update- Returns:
- null if successful, otherwise the error message
-
-