Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

oracle.javatools.db
Interface DBObjectID

All Superinterfaces:
Copyable
All Known Subinterfaces:
ColumnConstraintReferenceID, DBReferenceID
All Known Implementing Classes:
AbstractDBObjectID, BaseObjectID, ConstraintID, DataTypeID, IdentifierBasedID, NameBasedID, NameBasedRefID, OfflineDBObjectID, ReferenceID, SQLFragmentID, TemporaryObjectID

public interface DBObjectID
extends Copyable

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, 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.
 
Methods inherited from interface oracle.javatools.util.Copyable
copyTo
 

Method Detail

equals

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

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

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

resolveID

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

Returns:
the DBObject referenced by this DBObjectID
Throws:
DBException

getParent

DBObjectID getParent()
Retrieves the parent for this id if it has one. Can return null.


Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

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