public final class DBRefUtil
extends java.lang.Object
DBRef objects.| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
fetchDBRef(com.mongodb.DB db,
java.lang.Object obj)
Fetches the
DBRef if the given object is one. |
static com.mongodb.DBObject |
fetchDBRefs(com.mongodb.DB db,
com.mongodb.DBObject obj)
Inspects the given
DBObject recursively and fetches it's
DBRefs recursively for the given DB. |
static boolean |
isRef(com.mongodb.DBObject obj)
Checks whether or not the given
DBObject is a
DBRef. |
public static com.mongodb.DBObject fetchDBRefs(com.mongodb.DB db,
com.mongodb.DBObject obj)
DBObject recursively and fetches it's
DBRefs recursively for the given DB.db - the DBobj - the DBObjectDBObject that was passed inpublic static java.lang.Object fetchDBRef(com.mongodb.DB db,
java.lang.Object obj)
DBRef if the given object is one.db - the DBobj - the objectpublic static boolean isRef(com.mongodb.DBObject obj)
DBObject is a
DBRef.obj - the DBObjectCopyright © 2013. All Rights Reserved.