save
Deprecated
Use defaultCollection.save()
Replace with
defaultCollection.save(document)
Saves a document to the default collection. When write operations are executed concurrently, the last writer will overwrite all other written values. Calling this method is the same as calling save(MutableDocument, ConcurrencyControl.LAST_WRITE_WINS)
Parameters
The document.
Throws
on error
Deprecated
Use defaultCollection.save()
Replace with
defaultCollection.save(document, concurrencyControl)
Saves a document to the default collection. When used with LAST_WRITE_WINS concurrency control, the last write operation will win if there is a conflict. When used with FAIL_ON_CONFLICT concurrency control, save will fail when there is a conflict and the method will return false
Return
true if successful. false if the FAIL_ON_CONFLICT concurrency
Parameters
The document.
The concurrency control.
Throws
on error
Deprecated
Use defaultCollection.save()
Replace with
defaultCollection.save(document, conflictHandler)
Saves a document to the default collection. Conflicts will be resolved by the passed ConflictHandler
Return
true if successful. false if the FAIL_ON_CONFLICT concurrency
Parameters
The document.
A conflict handler.
Throws
on error
Deprecated
Use defaultCollection.save()
Replace with
defaultCollection.save(document)
Deprecated
Use defaultCollection.save()
Replace with
defaultCollection.save(document, conflictHandler)
Deprecated
Use defaultCollection.save()
Replace with
defaultCollection.save(document)
Deprecated
Use defaultCollection.save()
Replace with
defaultCollection.save(document, concurrencyControl)
Deprecated
Use defaultCollection.save()
Replace with
defaultCollection.save(document, conflictHandler)