Extension SDK 9.0.5

oracle.jdeveloper.cm.ds.db
Class TemporaryObjectID

java.lang.Object
  extended byoracle.jdeveloper.cm.ds.db.TemporaryObjectID
All Implemented Interfaces:
DBObjectID

public class TemporaryObjectID
extends java.lang.Object
implements DBObjectID

Implementation od the DBObjectID interface for objects that only exist in memory. The Object ID in this case can point directly to the object.

Since:
9.0.5.1

Method Summary
static DBObjectID createID(DBObject obj)
          Creates a new DBObjectID pointing to a specific object.
static DBObjectID createID(DBObject obj, DBObject original)
          Creates a new DBObjectID pointing to a specific object.
 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.
 DBObject resolveOriginalID()
          Get the original object which this temporary one was copied from
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.jdeveloper.cm.ds.db.DBObjectID
toString
 

Method Detail

equals

public boolean equals(DBObjectID id)
Description copied from interface: DBObjectID
Whether the specified id is equivalent to this id.

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(DBObjectID id,
                      boolean strict)
Description copied from interface: DBObjectID
Whether the specified id is equivalent to this id.

Specified by:
equals in interface DBObjectID
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()
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();

resolveID

public DBObject resolveID()
                   throws DBException
Description copied from interface: DBObjectID
Resolves the id into the object referenced.

Specified by:
resolveID in interface DBObjectID
Returns:
the DBObject referenced by this DBObjectID
Throws:
DBException

createID

public static DBObjectID createID(DBObject obj)
Creates a new DBObjectID pointing to a specific object.

Parameters:
obj - the DBObject referenced by this ID
Returns:
a DBObjectID pointing to the specified object

createID

public static DBObjectID createID(DBObject obj,
                                  DBObject original)
Creates a new DBObjectID pointing to a specific object.

Parameters:
obj - the DBObject referenced by this ID
original - the DBObject which has been copied to create the temporary object
Returns:
a DBObjectID pointing to the specified object

resolveOriginalID

public DBObject resolveOriginalID()
                           throws DBException
Get the original object which this temporary one was copied from

Throws:
DBException

Extension SDK

 

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