Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultDBEncoder
The default BSON encoder for BSONObject instances.
|
class |
LazyDBEncoder
Encoder that only knows how to encode BSONObject instances of type LazyDBObject.
|
Modifier and Type | Method and Description |
---|---|
DBEncoder |
DBEncoderFactory.create()
Creates an instance.
|
DBEncoder |
InsertOptions.getDbEncoder()
The encoder to use for the documents.
|
Modifier and Type | Method and Description |
---|---|
CommandResult |
DB.command(DBObject command,
DBEncoder encoder)
Executes a database command.
|
CommandResult |
DB.command(DBObject command,
ReadPreference readPreference,
DBEncoder encoder)
Executes a database command with the selected readPreference, and encodes the command using the given encoder.
|
InsertOptions |
InsertOptions.dbEncoder(DBEncoder dbEncoder)
Set the encoder to use for the documents.
|
WriteResult |
DBCollection.insert(DBObject[] documents,
WriteConcern aWriteConcern,
DBEncoder encoder)
Insert documents into a collection.
|
WriteResult |
DBCollection.insert(List<? extends DBObject> documents,
WriteConcern aWriteConcern,
DBEncoder dbEncoder)
Insert documents into a collection.
|
WriteResult |
DBCollection.remove(DBObject query,
WriteConcern writeConcern,
DBEncoder encoder)
Remove documents from a collection.
|
WriteResult |
DBCollection.update(DBObject query,
DBObject update,
boolean upsert,
boolean multi,
WriteConcern concern,
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.
|
Modifier and Type | Method and Description |
---|---|
DBEncoder |
DBCollectionRemoveOptions.getEncoder()
Returns the encoder
|
DBEncoder |
DBCollectionUpdateOptions.getEncoder()
Returns the encoder
|
Modifier and Type | Method and Description |
---|---|
DBCollectionRemoveOptions |
DBCollectionRemoveOptions.encoder(DBEncoder encoder)
Sets the encoder
|
DBCollectionUpdateOptions |
DBCollectionUpdateOptions.encoder(DBEncoder encoder)
Sets the encoder
|
Copyright © 2018. All rights reserved.