Package | Description |
---|---|
com.mongodb |
Main package with core files.
|
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 cmd,
DBEncoder encoder)
Executes a database command.
|
CommandResult |
DB.command(DBObject cmd,
int options,
DBEncoder encoder)
Deprecated.
Use
DB.command(DBObject, ReadPreference, DBEncoder) instead. This method will be removed in 3.0. |
CommandResult |
DB.command(DBObject cmd,
int options,
ReadPreference readPreference,
DBEncoder encoder)
Deprecated.
Use
DB.command(DBObject, ReadPreference, DBEncoder) instead. This method will be removed in 3.0. |
CommandResult |
DB.command(DBObject cmd,
ReadPreference readPreference,
DBEncoder encoder)
Executes a database command with the selected readPreference, and encodes the command using the given encoder.
|
abstract void |
DBCollection.createIndex(DBObject keys,
DBObject options,
DBEncoder encoder)
Deprecated.
use
DBCollection.createIndex(DBObject, com.mongodb.DBObject) the encoder is not used. |
InsertOptions |
InsertOptions.dbEncoder(DBEncoder dbEncoder)
Set the encoder to use for the documents.
|
WriteResult |
DBCollection.insert(DBObject[] arr,
WriteConcern concern,
DBEncoder encoder)
Insert documents into a collection.
|
WriteResult |
DBCollection.insert(List<DBObject> list,
WriteConcern concern,
DBEncoder encoder)
Insert documents into a collection.
|
protected abstract WriteResult |
DBCollection.insertImpl(List<DBObject> list,
WriteConcern concern,
DBEncoder encoder,
Boolean bypassDocumentValidation)
Insert documents into a collection.
|
abstract WriteResult |
DBCollection.remove(DBObject o,
WriteConcern concern,
DBEncoder encoder)
Remove documents from a collection.
|
WriteResult |
DBCollection.update(DBObject q,
DBObject o,
boolean upsert,
boolean multi,
WriteConcern concern,
boolean bypassDocumentValidation,
DBEncoder encoder)
Modify an existing document or documents in collection.
|
WriteResult |
DBCollection.update(DBObject q,
DBObject o,
boolean upsert,
boolean multi,
WriteConcern concern,
DBEncoder encoder)
Modify an existing document or documents in collection.
|
protected abstract WriteResult |
DBCollection.updateImpl(DBObject q,
DBObject o,
boolean upsert,
boolean multi,
WriteConcern concern,
Boolean bypassDocumentValidation,
DBEncoder encoder)
Modify an existing document or documents in collection.
|