public interface DBObjectID extends Copyable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UNSPECIFIED_TYPE
Fake object type used for ids that identify an object but the type is
not known.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(DBObjectID id,
boolean strict)
Whether the specified id is equivalent to this id.
|
DBObjectID |
getParent()
Retrieves the parent for this id if it has one.
|
java.lang.String |
getType()
Retrieves the type of object referenced by this id.
|
DBObject |
resolveID()
Resolves the id into the object referenced.
|
static final java.lang.String UNSPECIFIED_TYPE
getType()
,
Constant Field Valuesboolean equals(DBObjectID id, boolean strict)
id
- the DBObjectID being checked for equalitystrict
- whether a strict definition of equality should be used.java.lang.String getType()
DBObject.getType()
DBObject resolveID() throws DBException
DBException
DBObjectID getParent()