Package | Description |
---|---|
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 |
BasicBSONObject.getObjectId(String field)
Returns the object id or null if not set.
|
Modifier and Type | Method and Description |
---|---|
Object |
LazyBSONCallback.createDBRef(String ns,
ObjectId id) |
void |
BasicBSONCallback.gotDBRef(String name,
String ns,
ObjectId id) |
void |
BSONCallback.gotDBRef(String name,
String ns,
ObjectId id) |
void |
EmptyBSONCallback.gotDBRef(String name,
String ns,
ObjectId id) |
void |
BasicBSONCallback.gotObjectId(String name,
ObjectId id) |
void |
BSONCallback.gotObjectId(String name,
ObjectId id) |
void |
EmptyBSONCallback.gotObjectId(String name,
ObjectId id) |
protected void |
BasicBSONEncoder.putObjectId(String name,
ObjectId oid) |
Modifier and Type | Method and Description |
---|---|
static ObjectId |
ObjectId.get()
Gets a new object id.
|
static ObjectId |
ObjectId.massageToObjectId(Object o)
Turn an object into an
ObjectId , if possible. |
Modifier and Type | Method and Description |
---|---|
int |
ObjectId.compareTo(ObjectId id) |