|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface representing an immutable object ID for a DBObject. DBObjectID instances are used to provide a reference between different DBObjects. For example, a Foreign Key can refer to the referenced relation through the DBObjectID instead of the relation directly. Because the DBObjectIDs are independent of the actual object, they provide a reliable level of indirection.
Method Summary | |
boolean |
equals(DBObjectID id) Whether the specified id is equivalent to this id. |
boolean |
equals(DBObjectID id, boolean strict) Whether the specified id is equivalent to this id. |
java.lang.String |
getType() Retrieves the type of object referenced by this id. |
DBObject |
resolveID() Resolves the id into the object referenced. |
java.lang.String |
toString() |
Method Detail |
public boolean equals(DBObjectID id)
id
- the DBObjectID being checked for equalitypublic boolean equals(DBObjectID id, boolean strict)
id
- the DBObjectID being checked for equalitystrict
- whether a strict definition of equality should be used.public java.lang.String getType()
DBObject.getType();
public DBObject resolveID() throws DBException
DBException
public java.lang.String toString()
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.