Interface and Description |
---|
com.mongodb.DBConnector
This class is NOT part of the public API. It will be dropped in 3.x releases.
|
com.mongodb.Java5MongoConnectionPoolMBean
This class will be removed in 3.x versions of the driver,
so please remove it from your compile time dependencies.
|
com.mongodb.MongoConnectionPoolMXBean
This class will be removed in 3.x versions of the driver,
so please remove it from your compile time dependencies.
|
Class and Description |
---|
com.mongodb.util.Args
This class is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.util.Assertions
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.util.Base64Codec
This class is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.BasicBSONDecoder.BSONInput
This class should not be a part of API.
Please see the class-level documentation for a migration instructions.
|
org.bson.io.BSONByteBuffer
use a simple byte array array instead, all of the classes that take a
BSONByteBuffer also take a byte[] |
org.bson.BSONLazyDecoder
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.tools.ConnectionPoolStat
This class will be removed in 3.x versions of the driver,
so please remove it from your compile time dependencies.
|
com.mongodb.util.ConnectionPoolStatisticsBean
This class will be removed in 3.x versions of the driver,
so please remove it from your compile time dependencies.
|
com.mongodb.DBApiLayer
This class is NOT part of the public API. It will be dropped in 3.x releases.
|
com.mongodb.DBPointer
BSON type DBPointer(0x0c) is deprecated. Please use a
DBRef instead. |
com.mongodb.DBPort
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.DBPortPool
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.DBRefBase
Use
DBRef class exclusively |
com.mongodb.DBTCPConnector
This class is NOT part of the public API. It will be dropped in 3.x releases.
|
com.mongodb.util.FastStack
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.util.Hash
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.util.IdentitySet
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.InUseConnectionBean
This class will be removed in 3.x versions of the driver,
so please remove it from your compile time dependencies.
|
org.bson.KeyCachingLazyBSONObject
This class is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.LazyBSONObject.LazyBSONKeySet
This class is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.LazyDBList
Please use
LazyDBList instead. |
com.mongodb.LazyWriteableDBCallback
This class will be removed in a future release. There is no replacement.
|
com.mongodb.LazyWriteableDBDecoder
This class will be removed in a future release. There is no replacement.
|
com.mongodb.LazyWriteableDBObject
This class will be removed in a future release. There is no replacement.
|
com.mongodb.MongoOptions
Replaced by
MongoClientOptions . |
org.bson.NewBSONDecoder
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.util.OptionMap
This class is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.PoolOutputBuffer
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.RawDBObject
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.ReadPreference.TaggedReadPreference
As of release 2.9, replaced by
ReadPreference.secondaryPreferred(DBObject, DBObject...) |
com.mongodb.ServerError
This is an internal class, and will likely be removed in the next major release.
|
com.mongodb.util.SimplePool
This class is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.util.SimplePool
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.util.StringBuilderPool
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.util.StringParseUtil
This class is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.util.StringRangeSet
This class is NOT a part of public API and will be dropped in the next major release
|
com.mongodb.util.ThreadPool
This class is no longer in use and should not have been public. It may be removed in a future release.
|
com.mongodb.util.ThreadUtil
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.util.TimeConstants
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.util.UniqueList
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.util.WeakBag
This class is NOT a part of public API and will be dropped in 3.x versions.
|
Exceptions and Description |
---|
com.mongodb.CommandFailureException
Use
instead . |
com.mongodb.DBPortPool.ConnectionWaitTimeOut
This class will be dropped in 3.x versions.
Please catch
MongoTimeoutException instead. |
com.mongodb.DBPortPool.NoMoreConnection
This class will be dropped in 3.x versions.
Please catch
MongoClientException instead. |
com.mongodb.DBPortPool.SemaphoresOut
This class will be dropped in 3.x versions.
Please catch
MongoWaitQueueFullException instead. |
com.mongodb.MongoException.CursorNotFound
This class will be dropped in 3.x versions.
Please catch
MongoCursorNotFoundException instead. |
com.mongodb.MongoException.DuplicateKey
This class will be dropped in 3.x versions.
Please catch
DuplicateKeyException instead. |
com.mongodb.MongoException.Network
This class will be dropped in 3.x versions.
Please catch
MongoSocketException instead. |
com.mongodb.MongoServerSelectionException
No longer thrown. Catch MongoTimeoutException instead
|
com.mongodb.UnacknowledgedWriteException
Catch
instead |
Field and Description |
---|
com.mongodb.gridfs.GridFS._bucketName
Please use
GridFS.getBucketName() for access. |
org.bson.BasicBSONEncoder._buf
Replaced by
BasicBSONEncoder.getOutputBuffer() . |
org.bson.LazyBSONObject._callback
This field is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.BasicBSONDecoder._callback
This field should not be a part of API.
Please see the class-level documentation for a migration instructions.
|
com.mongodb.gridfs.GridFS._chunkCollection
Please use
GridFS.getChunksCollection() for access. |
com.mongodb.AggregationOutput._cmd
Please use
AggregationOutput.getCommand() instead. |
com.mongodb.AggregationOutput._commandResult
Please use
AggregationOutput.getCommandResult() instead. |
com.mongodb.gridfs.GridFS._db
Please use
GridFS.getDB() for access. |
org.bson.LazyBSONObject._doc_start_offset
Please use
LazyBSONObject.getOffset() instead. |
com.mongodb.gridfs.GridFS._filesCollection
Please use
GridFS.getFilesCollection() for access. |
com.mongodb.gridfs.GridFSFile._fs
Please use
GridFSFile.getGridFS() & GridFSFile.setGridFS(GridFS) instead. |
com.mongodb.DBCollection._fullName
Please use
DBCollection.getFullName() instead. |
com.mongodb.DBCollection._hintFields
Please use
DBCollection.setHintFields(java.util.List) and DBCollection.getHintFields() instead. |
org.bson.BasicBSONDecoder._in
This field should not be a part of API.
Please see the class-level documentation for a migration instructions.
|
org.bson.LazyBSONObject._input
Please use
LazyBSONObject.getBytes() to access underlying bytes. |
org.bson.BasicBSONDecoder._len
This field should not be a part of API.
Please see the class-level documentation for a migration instructions.
|
com.mongodb.DBCollection._name
Please use
DBCollection.getName() instead. |
com.mongodb.DBCollection._objectClass
Please use
DBCollection.getObjectClass() and DBCollection.setObjectClass(Class) instead. |
org.bson.BasicBSONDecoder._pos
This field should not be a part of API.
Please see the class-level documentation for a migration instructions.
|
com.mongodb.DB._readOnly |
com.mongodb.AggregationOutput._resultSet
Please use
AggregationOutput.results() instead. |
org.bson.BSON._utf8
Use
Charset.forName(String) to create UTF-8 charset. |
com.mongodb.MongoOptions.autoConnectRetry
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
com.mongodb.WriteConcern.ERRORS_IGNORED
There is no replacement for this write concern. The closest would be to use WriteConcern#UNACKNOWLEDGED,
then catch and ignore any exceptions of type MongoSocketException.
|
com.mongodb.Mongo.MAJOR_VERSION
Replaced by
Mongo.getMajorVersion() |
com.mongodb.gridfs.GridFS.MAX_CHUNKSIZE
You can calculate max chunkSize with a similar formula
Mongo.getMaxBsonObjectSize() - 500*1000.
Please ensure that you left enough space for metadata (500kb is enough). |
com.mongodb.MongoOptions.maxAutoConnectRetryTime
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
com.mongodb.Mongo.MINOR_VERSION
Replaced by
Mongo.getMinorVersion() |
com.mongodb.WriteConcern.NONE |
com.mongodb.ReadPreference.PRIMARY
As of release 2.9.0, replaced by
ReadPreference.primary() |
com.mongodb.ReadPreference.SECONDARY
As of release 2.9.0, replaced by
ReadPreference.secondaryPreferred() |
com.mongodb.MongoOptions.slaveOk
Replaced with
ReadPreference.secondaryPreferred() |
Method and Description |
---|
org.bson.BasicBSONDecoder._binary(String)
This method should not be a part of API.
Please see the class-level documentation for a migration instructions.
|
com.mongodb.DBCollection._checkObject(DBObject, boolean, boolean)
This method should not be a part of API.
If you override one of the
DBCollection methods please rely on superclass
implementation in checking argument correctness and validity. |
com.mongodb.gridfs.GridFS._fix(Object)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.types.ObjectId._flip(int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.types.ObjectId._inc()
Please use
ObjectId.toByteArray() instead. |
org.bson.types.ObjectId._machine()
Please use
ObjectId.toByteArray() instead. |
org.bson.BasicBSONEncoder._put(byte, String)
This method is NOT a part of public API and will be dropped in 3.x versions.
Access buffer directly via
BasicBSONEncoder.getOutputBuffer() if you need to change how BSON is written. |
org.bson.BasicBSONEncoder._put(String)
Replaced by
getOutputBuffer().writeCString(String) . |
org.bson.BasicBSONEncoder._putValueString(String)
This method is NOT a part of public API and will be dropped in 3.x versions.
Access buffer directly via
BasicBSONEncoder.getOutputBuffer() if you need to change how BSON is written.
Otherwise override BasicBSONEncoder.putString(String, String) . |
org.bson.types.ObjectId._time()
Please use
ObjectId.getTimestamp() ()} instead. |
com.mongodb.MongoClientOptions.Builder.acceptableLatencyDifference(int) |
com.mongodb.MapReduceCommand.addExtraOption(String, Object)
use the specific setter methods
|
com.mongodb.DB.addUser(String, char[])
Use
DB.command to call either the createUser or updateUser command |
com.mongodb.DB.addUser(String, char[], boolean)
Use
DB.command to call either the createUser or updateUser command |
com.mongodb.DBCollection.aggregate(DBObject, DBObject...)
Use
DBCollection.aggregate(java.util.List) instead |
com.mongodb.DBCollection.apply(DBObject)
This method will be removed in a future release. There is no replacement.
|
com.mongodb.DBCollection.apply(DBObject, boolean)
This method will be removed in a future release. There is no replacement.
|
org.bson.io.OutputBuffer.asString()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.BasicOutputBuffer.asString()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.PoolOutputBuffer.asString(String)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.OutputBuffer.asString(String)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.BasicOutputBuffer.asString(String)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.DB.authenticate(String, char[])
Please use
MongoClient.MongoClient(java.util.List, java.util.List) to create a client, which
will authenticate all connections to server |
com.mongodb.DB.authenticateCommand(String, char[])
Please use
MongoClient.MongoClient(java.util.List, java.util.List) to create a client, which
will authenticate all connections to server |
com.mongodb.MongoClientOptions.Builder.autoConnectRetry(boolean)
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
org.bson.types.ObjectId.babbleToMongod(String)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.DBCollection.checkReadOnly(boolean) |
com.mongodb.DB.cleanCursors(boolean)
Clients should ensure that
DBCursor.close() is called. |
com.mongodb.DB.command(DBObject, int)
Use
DB.command(DBObject, ReadPreference) instead. This method will be removed in 3.0. |
com.mongodb.DB.command(DBObject, int, DBEncoder)
Use
DB.command(DBObject, ReadPreference, DBEncoder) instead. This method will be removed in 3.0. |
com.mongodb.DB.command(DBObject, int, ReadPreference)
Use
DB.command(DBObject, ReadPreference) instead. This method will be removed in 3.0. |
com.mongodb.DB.command(DBObject, int, ReadPreference, DBEncoder)
Use
DB.command(DBObject, ReadPreference, DBEncoder) instead. This method will be removed in 3.0. |
com.mongodb.DB.command(String, int)
Use
DB.command(String, ReadPreference) instead. This method will be removed in 3.0. |
com.mongodb.Mongo.connect(DBAddress)
Please use
Mongo.getDB(String) instead. |
com.mongodb.Mongo.Holder.connect(MongoURI)
Please use
Mongo.Holder.connect(MongoClientURI) instead. |
com.mongodb.ReflectionDBObject.containsKey(String) |
com.mongodb.ReflectionDBObject.JavaWrapper.containsKey(String) |
com.mongodb.RawDBObject.containsKey(String) |
com.mongodb.gridfs.GridFSFile.containsKey(String) |
org.bson.LazyBSONObject.containsKey(String) |
org.bson.BSONObject.containsKey(String)
Please use
BSONObject.containsField(String) instead |
org.bson.BasicBSONObject.containsKey(String) |
org.bson.types.BasicBSONList.containsKey(String) |
com.mongodb.WriteConcern.continueOnError(boolean)
the preferred way to specify this is to use write methods that explicitly specify the value of this property
|
com.mongodb.WriteConcern.continueOnErrorForInsert(boolean)
the preferred way to specify this is to use write methods that explicitly specify the value of this property
|
com.mongodb.DBCollection.createIndex(DBObject, DBObject, DBEncoder)
use
DBCollection.createIndex(DBObject, com.mongodb.DBObject) the encoder is not used. |
com.mongodb.Mongo.debugString()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.DBCursor.disableBatchSizeTracking()
This method is being added temporarily, and will be removed along with
DBCursor.getSizes() in the next major release |
com.mongodb.DBCollection.doapply(DBObject)
This method will be removed in a future release. There is no replacement.
|
com.mongodb.DBCollection.ensureIndex(DBObject)
use
DBCollection.createIndex(DBObject) instead |
com.mongodb.DBCollection.ensureIndex(DBObject, DBObject)
use
DBCollection.createIndex(DBObject, DBObject) instead |
com.mongodb.DBCollection.ensureIndex(DBObject, String)
use
DBCollection.createIndex(DBObject, DBObject) instead |
com.mongodb.DBCollection.ensureIndex(DBObject, String, boolean) |
com.mongodb.DBCollection.ensureIndex(String)
use
DBCollection.createIndex(String) instead |
com.mongodb.DBRefBase.fetch()
use
DBCollection.findOne(Object) instead |
com.mongodb.DBRef.fetch(DB, DBObject)
use
DBCollection.findOne(Object) instead |
com.mongodb.DBCollection.find(DBObject, DBObject, int, int)
use
DBCursor.skip(int) and DBCursor.batchSize(int) on the DBCursor
returned from DBCollection.find(DBObject, DBObject) |
com.mongodb.DBCollection.find(DBObject, DBObject, int, int, int)
use
DBCursor.skip(int) , DBCursor.batchSize(int) and DBCursor.setOptions(int) on the DBCursor returned from DBCollection.find(DBObject,
DBObject) |
com.mongodb.DB.forceError()
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
com.mongodb.DBCollection.genIndexName(DBObject)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.MongoClientOptions.getAcceptableLatencyDifference()
Use
MongoClientOptions.getLocalThreshold() instead |
com.mongodb.WriteResult.getCachedLastError()
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. |
com.mongodb.WriteConcern.getCommand()
This will be removed in 3.0
|
com.mongodb.AggregationOutput.getCommand()
there is no replacement for this method
|
com.mongodb.WriteConcernException.getCommandResult() |
com.mongodb.MapReduceOutput.getCommandResult()
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. |
com.mongodb.CommandFailureException.getCommandResult() |
com.mongodb.AggregationOutput.getCommandResult()
there is no replacement for this method
|
com.mongodb.Mongo.getConnector()
DBTCPConnector is NOT part of the public API. It will be dropped in 3.x releases. |
com.mongodb.WriteConcern.getContinueOnError()
the preferred way to specify this is to use write methods that explicitly specify the value of this property
|
com.mongodb.WriteConcern.getContinueOnErrorForInsert()
the preferred way to specify this is to use write methods that explicitly specify the value of this property
|
org.bson.types.ObjectId.getCurrentInc()
Please use
ObjectId.getCurrentCounter() instead. |
com.mongodb.DBRefBase.getDB()
deprecated because
DBRefBase.fetch() is deprecated |
org.bson.LazyBSONObject.getElementBSONSize(int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.LazyBSONObject.getElementType(int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.LazyBSONObject.getElementValue(LazyBSONObject.ElementRecord)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.WriteResult.getError()
There should be no reason to use this method. The error message will be in the exception thrown for an
unsuccessful write operation.
|
com.mongodb.MapReduceCommand.getExtraOptions()
use the specific field getter methods
|
com.mongodb.WriteResult.getField(String)
There should be no reason to use this method. To get specific fields from a successful write,
use the helper methods provided. Any error-related fields will be in the exception thrown for an unsuccessful write operation.
|
org.bson.types.ObjectId.getGenMachineId() |
com.mongodb.MongoClientOptions.getHeartbeatConnectRetryFrequency()
replaced by
MongoClientOptions.getMinHeartbeatFrequency() |
com.mongodb.MongoClientOptions.getHeartbeatThreadCount()
this is no longer a configurable property
|
org.bson.types.ObjectId.getInc()
Please use the
ObjectId.toByteArray() instead. |
com.mongodb.WriteResult.getLastConcern()
there is no replacement for this method
|
com.mongodb.WriteResult.getLastError()
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. |
com.mongodb.DB.getLastError()
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
com.mongodb.DB.getLastError(int, int, boolean)
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
com.mongodb.WriteResult.getLastError(WriteConcern)
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. |
com.mongodb.DB.getLastError(WriteConcern)
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
org.bson.types.ObjectId.getMachine()
Please use
#toByteArray() instead. |
com.mongodb.Mongo.getMajorVersion()
Please use
Mongo.getVersion() instead. |
com.mongodb.MongoOptions.getMaxAutoConnectRetryTime()
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
com.mongodb.MongoClientOptions.getMaxAutoConnectRetryTime()
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
com.mongodb.Mongo.getMinorVersion()
Please use
Mongo.getVersion() instead. |
com.mongodb.Mongo.getMongoOptions()
Please use
MongoClient and corresponding MongoClient.getMongoClientOptions() |
com.mongodb.DB.getPreviousError()
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
com.mongodb.MapReduceOutput.getRaw()
It is not recommended to access the raw document 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 result (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. |
com.mongodb.DBRefBase.getRef()
use
DBRefBase.getCollectionName() instead |
com.mongodb.MapReduceOutput.getServerUsed()
this method will be removed in the next major release
|
com.mongodb.CommandResult.getServerUsed()
there is no replacement for this method
|
com.mongodb.AggregationOutput.getServerUsed()
there is no replacement for this method
|
com.mongodb.DBCursor.getSizes()
there is no replacement for this method
|
com.mongodb.TaggableReadPreference.getTagSets()
use the
getTagSetList method instead |
org.bson.types.ObjectId.getTime()
Use #getDate instead
|
org.bson.types.ObjectId.getTimeSecond()
Use #getTimestamp instead
|
com.mongodb.Mongo.getVersion()
There is no replacement for this method.
|
org.bson.EmptyBSONCallback.gotBinaryArray(String, byte[]) |
org.bson.BSONCallback.gotBinaryArray(String, byte[]) |
org.bson.BasicBSONCallback.gotBinaryArray(String, byte[]) |
com.mongodb.DBCollection.group(DBObject)
use
DBCollection.group(com.mongodb.GroupCommand) instead. This method will be removed in 3.0 |
org.bson.BasicBSONEncoder.handleSpecialObjects(String, BSONObject)
Override
BasicBSONEncoder.putSpecial(String, Object) if you need to you need to handle custom types. |
com.mongodb.MongoClientOptions.Builder.heartbeatConnectRetryFrequency(int)
replaced by
MongoClientOptions.Builder.minHeartbeatFrequency |
com.mongodb.MongoClientOptions.Builder.heartbeatThreadCount(int)
this is no longer a configurable property
|
org.bson.io.OutputBuffer.hex()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.DB.isAuthenticated()
Please use
MongoClient.MongoClient(java.util.List, java.util.List) to create a client, which
will authenticate all connections to server |
com.mongodb.MongoOptions.isAutoConnectRetry()
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
com.mongodb.MongoClientOptions.isAutoConnectRetry()
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
com.mongodb.DBCursor.isBatchSizeTrackingDisabled()
This method is being added temporarily, and will be removed along with
DBCursor.getSizes() in the next major release |
org.bson.LazyBSONObject.isElementEmpty(int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.WriteResult.isLazy()
there is no replacement for this method
|
org.bson.types.ObjectId.isNew()
'new' flag breaks the immutability of the
ObjectId class
and will be dropped in 3.x versions of the driver |
com.mongodb.MongoClientOptions.Builder.localThreshold(int) |
com.mongodb.DBCollection.mapReduce(DBObject)
Use
DBCollection.mapReduce(MapReduceCommand) instead |
org.bson.types.ObjectId.massageToObjectId(Object)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.MongoClientOptions.Builder.maxAutoConnectRetryTime(long)
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
org.bson.io.OutputBuffer.md5()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.ReadPreference.nearest(DBObject, DBObject...)
use factory methods that take
TagSet instead |
org.bson.types.ObjectId.notNew()
'new' flag breaks the immutability of the
ObjectId class
and will be dropped in 3.x versions of the driver |
com.mongodb.DBCursor.numGetMores()
there is no replacement for this method
|
org.bson.EmptyBSONCallback.objectStart(boolean)
instead, use
EmptyBSONCallback.arrayStart() if array is true, and EmptyBSONCallback.objectStart() if array is false |
org.bson.BSONCallback.objectStart(boolean)
instead, use
BSONCallback.arrayStart() if array is true, and BSONCallback.objectStart() if array is false |
org.bson.BasicBSONCallback.objectStart(boolean)
instead, use
BasicBSONCallback.arrayStart() if array is true, and BasicBSONCallback.objectStart() if if array is false |
com.mongodb.DefaultDBCallback.objectStart(boolean, String)
instead, use
BasicBSONCallback.arrayStart(String) if array is true, and BasicBSONCallback.objectStart(String) if array
is false |
com.mongodb.util.JSONCallback.objectStart(boolean, String)
instead, use
BasicBSONCallback.arrayStart(String) if array is true, and BasicBSONCallback.objectStart(String) if array
is false |
org.bson.BasicBSONCallback.objectStart(boolean, String)
instead, use
BasicBSONCallback.arrayStart(String) if array is true, and BasicBSONCallback.objectStart(String) if array
is false |
org.bson.io.BasicOutputBuffer.pipe(DataOutput) |
com.mongodb.ReadPreference.primaryPreferred(DBObject, DBObject...)
use factory methods that take
TagSet instead |
com.mongodb.DefaultDBEncoder.putDBPointer(String, String, ObjectId)
Please see
DBPointer .
You can override DefaultDBEncoder.putDBRef(String, DBRefBase) if you need
a specific behaviour while decoding database references. |
com.mongodb.WriteConcern.raiseNetworkErrors()
There is no replacement for this method.
|
com.mongodb.DB.removeUser(String)
Use
DB.command to call the dropUser command |
com.mongodb.DB.requestDone()
The main use case for this method is to ensure that applications can read their own unacknowledged writes,
but this is no longer so prevalent since the driver started defaulting to acknowledged writes. The other main use case is to
ensure that related read operations are all routed to the same server when using a non-primary read preference. But this is
dangerous because mongos does not provide this guarantee. For these reasons, this method is now deprecated and will be
removed in the next major release.
|
com.mongodb.DB.requestEnsureConnection()
The main use case for this method is to ensure that applications can read their own unacknowledged writes,
but this is no longer so prevalent since the driver started defaulting to acknowledged writes. The other main use case is to
ensure that related read operations are all routed to the same server when using a non-primary read preference. But this is
dangerous because mongos does not provide this guarantee. For these reasons, this method is now deprecated and will be
removed in the next major release.
|
com.mongodb.DB.requestStart()
The main use case for this method is to ensure that applications can read their own unacknowledged writes,
but this is no longer so prevalent since the driver started defaulting to acknowledged writes. The other main use case is to
ensure that related read operations are all routed to the same server when using a non-primary read preference. But this is
dangerous because mongos does not provide this guarantee. For these reasons, this method is now deprecated and will be
removed in the next major release.
|
com.mongodb.DB.resetError()
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
com.mongodb.DBCollection.resetIndexCache()
This will be removed in 3.0
|
com.mongodb.ReadPreference.secondary(DBObject, DBObject...)
use factory methods that take
TagSet instead |
com.mongodb.ReadPreference.secondaryPreferred(DBObject, DBObject...)
use factory methods that take
TagSet instead |
org.bson.io.PoolOutputBuffer.seekEnd()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.OutputBuffer.seekEnd()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.BasicOutputBuffer.seekEnd()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.PoolOutputBuffer.seekStart()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.OutputBuffer.seekStart()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.BasicOutputBuffer.seekStart()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.MongoOptions.setAutoConnectRetry(boolean)
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
com.mongodb.MongoOptions.setMaxAutoConnectRetryTime(long)
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
org.bson.io.PoolOutputBuffer.setPosition(int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.OutputBuffer.setPosition(int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.BasicOutputBuffer.setPosition(int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.DB.setReadOnly(Boolean)
Avoid making database read-only via this method.
Connect with a user credentials that has a read-only access to a server instead.
|
org.bson.LazyBSONCallback.setRootObject(Object)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.WriteConcern.setWObject(Object)
construct a new instance instead. This method will be removed in a future major release, as instances of this class
should really be immutable.
|
org.bson.LazyBSONObject.sizeCString(int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.Mongo.slaveOk()
Replaced with
ReadPreference.secondaryPreferred() |
com.mongodb.DBCursor.slaveOk()
Replaced with
ReadPreference.secondaryPreferred() |
com.mongodb.DBCollection.slaveOk()
Replaced with
ReadPreference.secondaryPreferred() |
com.mongodb.DB.slaveOk()
Replaced with
ReadPreference.secondaryPreferred() |
com.mongodb.TaggableReadPreference.toDBObject() |
com.mongodb.ReadPreference.toDBObject()
for internal use only
|
org.bson.types.ObjectId.toStringBabble()
'babble' format is deprecated and will be removed in 3.0. Please use
ObjectId.toHexString() instead. |
org.bson.types.ObjectId.toStringMongod() |
com.mongodb.ReadPreference.valueOf(String, DBObject, DBObject...)
use method that takes a
List<TagSet> |
com.mongodb.ReadPreference.withTags(DBObject)
As of release 2.9.0, replaced by
ReadPreference.secondaryPreferred(DBObject firstTagSet, DBObject... remainingTagSets) |
com.mongodb.ReadPreference.withTags(Map<String, String>)
As of release 2.9.0, replaced by
ReadPreference.secondaryPreferred(DBObject firstTagSet, DBObject... remainingTagSets) |
org.bson.BasicBSONEncoder.writeCString(String)
Replaced by
getOutputBuffer().writeCString(String) . |
org.bson.BasicBSONEncoder.writeInt(int)
Replaced by
getOutputBuffer().writeInt(int) . |
org.bson.io.OutputBuffer.writeInt(int, int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.OutputBuffer.writeIntBE(int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.BasicBSONEncoder.writeLong(long)
Replaced by
getOutputBuffer().writeLong(long) . |