Package | Description |
---|---|
com.mongodb |
This package is the main entry point to the MongoDB Java Driver, and it contains the classes for the existing API from 2.x versions.
|
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.
|
Copyright © 2016. All Rights Reserved.