Package | Description |
---|---|
com.mongodb |
Main package with core files.
|
Modifier and Type | Field and Description |
---|---|
protected CommandResult |
AggregationOutput._commandResult
Deprecated.
Please use
AggregationOutput.getCommandResult() instead. |
Modifier and Type | Method and Description |
---|---|
CommandResult |
DBTCPConnector.authenticate(MongoCredential credentials)
Deprecated.
|
CommandResult |
DBConnector.authenticate(MongoCredential credentials)
Deprecated.
Authenticate using the given credentials.
|
CommandResult |
DB.authenticateCommand(String username,
char[] password)
Deprecated.
Please use
MongoClient.MongoClient(java.util.List, java.util.List) to create a client, which
will authenticate all connections to server |
CommandResult |
DB.command(DBObject cmd)
Executes a database command.
|
CommandResult |
DB.command(DBObject cmd,
DBEncoder encoder)
Executes a database command.
|
CommandResult |
DB.command(DBObject cmd,
int options)
Deprecated.
Use
DB.command(DBObject, ReadPreference) instead. This method will be removed in 3.0. |
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)
Deprecated.
Use
DB.command(DBObject, ReadPreference) 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)
Executes the command against the database with the given read preference.
|
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.
|
CommandResult |
DB.command(String cmd)
Executes a database command.
|
CommandResult |
DB.command(String cmd,
int options)
Deprecated.
Use
DB.command(String, ReadPreference) instead. This method will be removed in 3.0. |
CommandResult |
DB.command(String cmd,
ReadPreference readPreference)
Executes a database command.
|
CommandResult |
DB.doEval(String code,
Object... args)
Evaluates JavaScript functions on the database server.
|
CommandResult |
DBCollection.explainAggregate(List<DBObject> pipeline,
AggregationOptions options)
Return the explain plan for the aggregation pipeline.
|
CommandResult |
Mongo.fsync(boolean async)
Forces the master server to fsync the RAM data to disk This is done automatically by the server at intervals, but can be forced for
better reliability.
|
CommandResult |
Mongo.fsyncAndLock()
Forces the master server to fsync the RAM data to disk, then lock all writes.
|
CommandResult |
WriteResult.getCachedLastError()
Deprecated.
Use the appropriate
WriteConcern and rely on the write operation to throw an exception on failure. For
successful writes, use the helper methods to retrieve specific values from the write response. |
CommandResult |
WriteConcernException.getCommandResult()
Gets the getlasterror command result document.
|
CommandResult |
MapReduceOutput.getCommandResult()
Deprecated.
It is not recommended to access the command result returned by the server as the format can change between releases. This
has been replaced with a series of specific getters for the values on the CommandResult (getCollectionName, getDatabaseName,
getDuration, getEmitCount, getOutputCount, getInputCount). The method
results() will continue to return an Iterable<DBObjects> , that should be used to obtain the results of the map-reduce. This method will be removed in 3.0. |
CommandResult |
CommandFailureException.getCommandResult()
Gets the getlasterror command result document.
|
CommandResult |
AggregationOutput.getCommandResult()
Deprecated.
there is no replacement for this method
|
CommandResult |
WriteResult.getLastError()
Deprecated.
Use the appropriate
WriteConcern and allow the write operation to throw an exception on failure. For
successful writes, use the helper methods to retrieve specific values from the write response. |
CommandResult |
DB.getLastError()
Deprecated.
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
CommandResult |
DB.getLastError(int w,
int wtimeout,
boolean fsync)
Deprecated.
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
CommandResult |
WriteResult.getLastError(WriteConcern concern)
Deprecated.
Use the appropriate
WriteConcern and rely on the write operation to throw an
exception on failure. For successful writes, use the helper methods to retrieve specific values from the write response. |
CommandResult |
DB.getLastError(WriteConcern concern)
Deprecated.
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
CommandResult |
DB.getPreviousError()
Deprecated.
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
CommandResult |
DBCollection.getStats()
The collStats command returns a variety of storage statistics for a given collection
|
CommandResult |
DB.getStats()
Helper method for calling a 'dbStats' command.
|
Constructor and Description |
---|
AggregationOutput(DBObject command,
CommandResult commandResult)
Deprecated.
there is no replacement for this constructor
|
CommandFailureException(CommandResult commandResult)
Construct a new instance with the CommandResult from a failed command
|
MapReduceOutput(DBCollection from,
DBObject cmd,
CommandResult raw)
Deprecated.
In the 3.0 version of the driver, this will be constructed only by the driver, and will therefore not have a public
constructor.
|
MongoException.DuplicateKey(CommandResult commandResult)
Deprecated.
|
WriteConcernException(CommandResult commandResult)
Construct a new instance with the CommandResult from getlasterror command
|