Extension SDK 9.0.5

oracle.jdeveloper.cm.ds.db
Interface DBObjectID

All Known Implementing Classes:
ConstraintID, TemporaryObjectID

public interface DBObjectID

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.

Since:
9.0.5

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

equals

public boolean equals(DBObjectID id)
Whether the specified id is equivalent to this id.

Parameters:
id - the DBObjectID being checked for equality
Returns:
whether the id is equal to this

equals

public boolean equals(DBObjectID id,
                      boolean strict)
Whether the specified id is equivalent to this id.

Parameters:
id - the DBObjectID being checked for equality
strict - whether a strict definition of equality should be used.
Returns:
whether the id is equal to this

getType

public java.lang.String getType()
Retrieves the type of object referenced by this id.

Returns:
the type of object
See Also:
DBObject.getType();

resolveID

public DBObject resolveID()
                   throws DBException
Resolves the id into the object referenced.

Returns:
the DBObject referenced by this DBObjectID
Throws:
DBException

toString

public java.lang.String toString()

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.