Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
Modifier and Type | Method and Description |
---|---|
static WriteConcernResult |
WriteConcernResult.acknowledged(int count,
boolean isUpdateOfExisting,
BsonValue upsertedId)
Create an acknowledged WriteConcernResult
|
WriteConcernResult |
WriteConcernException.getWriteConcernResult()
Gets the write result.
|
WriteConcernResult |
MongoWriteConcernException.getWriteResult()
Gets the write result.
|
static WriteConcernResult |
WriteConcernResult.unacknowledged()
Create an unacknowledged WriteConcernResult
|
Constructor and Description |
---|
DuplicateKeyException(BsonDocument response,
ServerAddress address,
WriteConcernResult writeConcernResult)
Construct an instance.
|
MongoWriteConcernException(WriteConcernError writeConcernError,
WriteConcernResult writeConcernResult,
ServerAddress serverAddress)
Construct an instance.
|
WriteConcernException(BsonDocument response,
ServerAddress address,
WriteConcernResult writeConcernResult)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
WriteConcernResult |
Connection.delete(MongoNamespace namespace,
boolean ordered,
DeleteRequest deleteRequest)
Delete the documents using the delete wire protocol and apply the write concern.
|
WriteConcernResult |
Connection.insert(MongoNamespace namespace,
boolean ordered,
InsertRequest insertRequest)
Insert the documents using the insert wire protocol and apply the write concern.
|
WriteConcernResult |
Connection.update(MongoNamespace namespace,
boolean ordered,
UpdateRequest updateRequest)
Update the documents using the update wire protocol and apply the write concern.
|
Modifier and Type | Method and Description |
---|---|
void |
AsyncConnection.deleteAsync(MongoNamespace namespace,
boolean ordered,
DeleteRequest deleteRequest,
SingleResultCallback<WriteConcernResult> callback)
Delete the documents using the delete wire protocol and apply the write concern asynchronously.
|
void |
AsyncConnection.insertAsync(MongoNamespace namespace,
boolean ordered,
InsertRequest insertRequest,
SingleResultCallback<WriteConcernResult> callback)
Insert the documents using the insert wire protocol and apply the write concern asynchronously.
|
void |
AsyncConnection.updateAsync(MongoNamespace namespace,
boolean ordered,
UpdateRequest updateRequest,
SingleResultCallback<WriteConcernResult> callback)
Update the documents using the update wire protocol and apply the write concern asynchronously.
|
Modifier and Type | Method and Description |
---|---|
WriteConcernResult |
BaseWriteOperation.execute(WriteBinding binding) |
Modifier and Type | Method and Description |
---|---|
void |
BaseWriteOperation.executeAsync(AsyncWriteBinding binding,
SingleResultCallback<WriteConcernResult> callback) |
Copyright © 2018. All rights reserved.