Package | Description |
---|---|
com.mongodb |
Main package with core files.
|
com.mongodb.gridfs |
GridFS tools.
|
com.mongodb.util |
Package containing misc utils.
|
org.bson |
Contains the base BSON classes and Encoder/Decoder.
|
org.bson.types |
Contains classes implementing various BSON types.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DBObject
A key-value map that can be saved to the database.
|
Modifier and Type | Class and Description |
---|---|
class |
BasicDBList
a basic implementation of bson list that is mongo specific
|
class |
BasicDBObject
a basic implementation of bson object that is mongo specific.
|
class |
CommandResult
A simple wrapper for the result of getLastError() calls and other commands
|
class |
LazyDBObject |
class |
LazyWriteableDBObject |
class |
RawDBObject
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
|
class |
ReflectionDBObject
This class enables to map simple Class fields to a BSON object fields
|
Modifier and Type | Method and Description |
---|---|
BSONObject |
DefaultDBCallback.create() |
BSONObject |
DefaultDBCallback.create(boolean array,
List<String> path) |
Modifier and Type | Method and Description |
---|---|
void |
ReflectionDBObject.putAll(BSONObject o) |
void |
RawDBObject.putAll(BSONObject o)
Deprecated.
|
void |
LazyWriteableDBObject.putAll(BSONObject o) |
int |
LazyDBEncoder.writeObject(OutputBuffer buf,
BSONObject o) |
int |
DefaultDBEncoder.writeObject(OutputBuffer buf,
BSONObject o) |
int |
DBEncoder.writeObject(OutputBuffer buf,
BSONObject o) |
Constructor and Description |
---|
DBRef(DB db,
BSONObject o)
Creates a DBRef
|
MongoException(BSONObject o)
Creates a MongoException from a BSON object representing an error
|
Modifier and Type | Class and Description |
---|---|
class |
GridFSDBFile
This class enables to retrieve a GridFS file metadata and content.
|
class |
GridFSFile
The abstract class representing a GridFS file
|
class |
GridFSInputFile
This class represents a GridFS file to be written to the database
Operations include:
- writing data obtained from an InputStream
- getting an OutputStream to stream the data out
|
Modifier and Type | Method and Description |
---|---|
void |
GridFSFile.putAll(BSONObject o) |
Modifier and Type | Method and Description |
---|---|
BSONObject |
JSONCallback.create() |
protected BSONObject |
JSONCallback.createList() |
Modifier and Type | Class and Description |
---|---|
class |
BasicBSONObject
A simple implementation of
DBObject . |
class |
KeyCachingLazyBSONObject
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
|
class |
LazyBSONList |
class |
LazyBSONObject |
class |
LazyDBList
Deprecated.
Please use
LazyDBList instead. |
Modifier and Type | Method and Description |
---|---|
BSONObject |
BasicBSONCallback.create() |
BSONObject |
BasicBSONCallback.create(boolean array,
List<String> path) |
protected BSONObject |
BasicBSONCallback.createList() |
protected BSONObject |
BasicBSONCallback.cur() |
static BSONObject |
BSON.decode(byte[] b) |
BSONObject |
NewBSONDecoder.readObject(byte[] pData)
Deprecated.
|
BSONObject |
LazyBSONDecoder.readObject(byte[] b) |
BSONObject |
BSONDecoder.readObject(byte[] b) |
BSONObject |
BasicBSONDecoder.readObject(byte[] b) |
BSONObject |
NewBSONDecoder.readObject(InputStream pIn)
Deprecated.
|
BSONObject |
LazyBSONDecoder.readObject(InputStream in) |
BSONObject |
BSONDecoder.readObject(InputStream in) |
BSONObject |
BasicBSONDecoder.readObject(InputStream in) |
Modifier and Type | Method and Description |
---|---|
byte[] |
BSONEncoder.encode(BSONObject o) |
static byte[] |
BSON.encode(BSONObject o) |
byte[] |
BasicBSONEncoder.encode(BSONObject o) |
protected boolean |
BasicBSONEncoder.handleSpecialObjects(String name,
BSONObject o)
Deprecated.
Override
BasicBSONEncoder.putSpecial(String, Object) if you need to you need to handle custom types. |
void |
LazyBSONObject.putAll(BSONObject o) |
void |
BSONObject.putAll(BSONObject o)
Sets all key/value pairs from an object into this object
|
void |
BasicBSONObject.putAll(BSONObject o) |
int |
BSONEncoder.putObject(BSONObject o) |
int |
BasicBSONEncoder.putObject(BSONObject o)
Encodes a
BSONObject . |
protected int |
BasicBSONEncoder.putObject(String name,
BSONObject o)
this is really for embedded objects
|
Modifier and Type | Class and Description |
---|---|
class |
BasicBSONList
Utility class to allow array
DBObject s to be created. |
Modifier and Type | Method and Description |
---|---|
BSONObject |
CodeWScope.getScope() |
Modifier and Type | Method and Description |
---|---|
void |
BasicBSONList.putAll(BSONObject o) |
Constructor and Description |
---|
CodeWScope(String code,
BSONObject scope) |