| Package | Description |
|---|---|
| com.mongodb |
Main package with core files.
|
| com.mongodb.gridfs |
GridFS tools.
|
| org.bson |
Contains the base BSON classes and Encoder/Decoder.
|
| org.bson.types |
Contains classes implementing various BSON types.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectId |
DBPointer.getId()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
LazyDBCallback.createDBRef(java.lang.String ns,
ObjectId id) |
void |
DefaultDBCallback.gotDBRef(java.lang.String name,
java.lang.String ns,
ObjectId id) |
protected void |
DefaultDBEncoder.putDBPointer(java.lang.String name,
java.lang.String ns,
ObjectId oid) |
| Constructor and Description |
|---|
DBPointer(java.lang.String ns,
ObjectId id)
Deprecated.
CTOR used for testing BSON encoding.
|
| Modifier and Type | Method and Description |
|---|---|
GridFSDBFile |
GridFS.find(ObjectId id)
finds one file matching the given id.
|
GridFSDBFile |
GridFS.findOne(ObjectId id)
finds one file matching the given id.
|
void |
GridFS.remove(ObjectId id)
removes the file matching the given id
|
| Modifier and Type | Method and Description |
|---|---|
ObjectId |
BasicBSONObject.getObjectId(java.lang.String field)
Returns the object id or null if not set.
|
ObjectId |
BasicBSONObject.getObjectId(java.lang.String field,
ObjectId def)
Returns the object id or def if not set.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
LazyBSONCallback.createDBRef(java.lang.String ns,
ObjectId id) |
ObjectId |
BasicBSONObject.getObjectId(java.lang.String field,
ObjectId def)
Returns the object id or def if not set.
|
void |
EmptyBSONCallback.gotDBRef(java.lang.String name,
java.lang.String ns,
ObjectId id) |
void |
BasicBSONCallback.gotDBRef(java.lang.String name,
java.lang.String ns,
ObjectId id) |
void |
BSONCallback.gotDBRef(java.lang.String name,
java.lang.String ns,
ObjectId id) |
void |
EmptyBSONCallback.gotObjectId(java.lang.String name,
ObjectId id) |
void |
BasicBSONCallback.gotObjectId(java.lang.String name,
ObjectId id) |
void |
BSONCallback.gotObjectId(java.lang.String name,
ObjectId id) |
protected void |
BasicBSONEncoder.putObjectId(java.lang.String name,
ObjectId oid) |
| Modifier and Type | Method and Description |
|---|---|
static ObjectId |
ObjectId.get()
Gets a new object id.
|
static ObjectId |
ObjectId.massageToObjectId(java.lang.Object o)
Turn an object into an
ObjectId, if possible. |
| Modifier and Type | Method and Description |
|---|---|
int |
ObjectId.compareTo(ObjectId id) |