Extension SDK 10.1.3.36.73

oracle.javatools.db
Class AbstractDBObjectID

java.lang.Object
  extended byoracle.javatools.db.AbstractDBObjectID
All Implemented Interfaces:
DBObjectID
Direct Known Subclasses:
ChildLevelObjectID, ConstraintID, DMDObjectID, NameBasedRefID, OracleLiteObjectID, TopLevelObjectID

public abstract class AbstractDBObjectID
extends java.lang.Object
implements DBObjectID

Abstract implementation of DBObjectID for subclassing by DBObjectID implementations.


Constructor Summary
protected AbstractDBObjectID()
           
 
Method Summary
 boolean equals(DBObjectID id)
          By default calls for a strict equals comparison.
 boolean equals(java.lang.Object obj)
          By default calls for an unstrict equals comparison.
 DBObjectID getParent()
          Gets this id's parent id (if one exists)
 java.lang.String getType()
          Retrieves the type of object referenced by this id.
 int hashCode()
           
protected  DBObject resolveFromParent()
          If the id's parent is non-null this tries to resolve the parent ID and then search the parent's children for an object with this ID.
protected  void setParent(DBObjectID parent)
          Sets this id's parent id
protected  void setType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.javatools.db.DBObjectID
equals, resolveID, toString
 

Constructor Detail

AbstractDBObjectID

protected AbstractDBObjectID()
Method Detail

getType

public java.lang.String getType()
Description copied from interface: DBObjectID
Retrieves the type of object referenced by this id.

Specified by:
getType in interface DBObjectID
Returns:
the type of object
See Also:
DBObject.getType();

setType

protected void setType(java.lang.String type)

getParent

public final DBObjectID getParent()
Gets this id's parent id (if one exists)

Specified by:
getParent in interface DBObjectID

setParent

protected void setParent(DBObjectID parent)
Sets this id's parent id


resolveFromParent

protected DBObject resolveFromParent()
                              throws DBException
If the id's parent is non-null this tries to resolve the parent ID and then search the parent's children for an object with this ID.

Throws:
DBException

equals

public boolean equals(DBObjectID id)
By default calls for a strict equals comparison.

Specified by:
equals in interface DBObjectID
Parameters:
id - the DBObjectID being checked for equality
Returns:
whether the id is equal to this

equals

public boolean equals(java.lang.Object obj)
By default calls for an unstrict equals comparison.


hashCode

public int hashCode()

Extension SDK 10.1.3.36.73

 

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