Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
Modifier and Type | Method and Description |
---|---|
WriteResult |
DB.addUser(java.lang.String userName,
char[] password)
Deprecated.
Use
DB.command to call either the createUser or updateUser command |
WriteResult |
DB.addUser(java.lang.String userName,
char[] password,
boolean readOnly)
Deprecated.
Use
DB.command to call either the createUser or updateUser command |
(package private) WriteResult |
DBCollection.executeWriteOperation(BaseWriteOperation operation) |
WriteResult |
DBCollection.insert(DBObject... documents)
Insert documents into a collection.
|
WriteResult |
DBCollection.insert(DBObject[] documents,
WriteConcern writeConcern)
Insert documents into a collection.
|
WriteResult |
DBCollection.insert(DBObject[] documents,
WriteConcern aWriteConcern,
DBEncoder encoder)
Insert documents into a collection.
|
WriteResult |
DBCollection.insert(DBObject document,
WriteConcern writeConcern)
Insert a document into a collection.
|
WriteResult |
DBCollection.insert(java.util.List<? extends DBObject> documents)
Insert documents into a collection.
|
WriteResult |
DBCollection.insert(java.util.List<? extends DBObject> documents,
InsertOptions insertOptions)
Insert documents into a collection.
|
WriteResult |
DBCollection.insert(java.util.List<? extends DBObject> documents,
WriteConcern aWriteConcern)
Insert documents into a collection.
|
WriteResult |
DBCollection.insert(java.util.List<? extends DBObject> documents,
WriteConcern aWriteConcern,
DBEncoder dbEncoder)
Insert documents into a collection.
|
private WriteResult |
DBCollection.insert(java.util.List<InsertRequest> insertRequestList,
WriteConcern writeConcern,
boolean continueOnError,
java.lang.Boolean bypassDocumentValidation) |
WriteResult |
DBCollection.insert(WriteConcern writeConcern,
DBObject... documents)
Insert documents into a collection.
|
WriteResult |
DBCollection.remove(DBObject query)
Remove documents from a collection.
|
WriteResult |
DBCollection.remove(DBObject query,
DBCollectionRemoveOptions options)
Remove documents from a collection.
|
WriteResult |
DBCollection.remove(DBObject query,
WriteConcern writeConcern)
Remove documents from a collection.
|
WriteResult |
DBCollection.remove(DBObject query,
WriteConcern writeConcern,
DBEncoder encoder)
Remove documents from a collection.
|
WriteResult |
DB.removeUser(java.lang.String userName)
Deprecated.
Use
DB.command to call the dropUser command |
private WriteResult |
DBCollection.replaceOrInsert(DBObject obj,
java.lang.Object id,
WriteConcern writeConcern) |
WriteResult |
DBCollection.save(DBObject document)
Update an existing document or insert a document depending on the parameter.
|
WriteResult |
DBCollection.save(DBObject document,
WriteConcern writeConcern)
Update an existing document or insert a document depending on the parameter.
|
private WriteResult |
DBCollection.translateWriteResult(int count,
boolean isUpdateOfExisting,
BsonValue upsertedId) |
private WriteResult |
DBCollection.translateWriteResult(WriteConcernResult writeConcernResult) |
static WriteResult |
WriteResult.unacknowledged()
Gets an instance representing an unacknowledged write.
|
WriteResult |
DBCollection.update(DBObject query,
DBObject update)
Modify an existing document.
|
WriteResult |
DBCollection.update(DBObject query,
DBObject update,
boolean upsert,
boolean multi)
Modify an existing document or documents in collection.
|
WriteResult |
DBCollection.update(DBObject query,
DBObject update,
boolean upsert,
boolean multi,
WriteConcern aWriteConcern)
Modify an existing document or documents in collection.
|
WriteResult |
DBCollection.update(DBObject query,
DBObject update,
boolean upsert,
boolean multi,
WriteConcern concern,
java.lang.Boolean bypassDocumentValidation,
DBEncoder encoder)
Modify an existing document or documents in collection.
|
WriteResult |
DBCollection.update(DBObject query,
DBObject update,
boolean upsert,
boolean multi,
WriteConcern concern,
DBEncoder encoder)
Modify an existing document or documents in collection.
|
WriteResult |
DBCollection.update(DBObject query,
DBObject update,
DBCollectionUpdateOptions options)
Modify an existing document or documents in collection.
|
WriteResult |
DBCollection.updateMulti(DBObject query,
DBObject update)
Modify documents in collection.
|