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

E13403-04

oracle.javatools.db.ora
Class RecycledObject

java.lang.Object
  extended by oracle.javatools.db.AbstractDBObject
      extended by oracle.javatools.db.AbstractBuildableObject
          extended by oracle.javatools.db.AbstractSchemaObject
              extended by oracle.javatools.db.ora.RecycledObject
All Implemented Interfaces:
DBObject, SchemaObject, SystemObject, Copyable, DynamicPropertySet

public class RecycledObject
extends AbstractSchemaObject

Model of an object that has been dropped and is now in the Oracle recycle bin.


Nested Class Summary
static class RecycledObject.Operation
           
 
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject
AbstractDBObject.ChildSupport
 
Field Summary
static java.lang.String TYPE
           
 
Fields inherited from interface oracle.javatools.db.DBObject
COMMENT
 
Constructor Summary
RecycledObject()
           
RecycledObject(java.lang.String name, Schema schema, DBObjectID id)
           
 
Method Summary
 boolean canPurge()
          Deprecated. use getCanPurge()
 boolean canUndrop()
          Deprecated. use getCanUndrop()
 DBObject copyTo(DBObject target, DBObject copyParent, IDPolicy idPolicy)
          Internal copy method used by the API to perform copy operations.
protected  void copyToImpl(RecycledObject copy, DBObject copyParent, IDPolicy idPolicy)
           
 boolean equals(java.lang.Object obj)
           
protected  boolean equalsImpl(RecycledObject target)
           
 DBObjectID getBaseObjectID()
          Gets the id of the base object.
 boolean getCanPurge()
          Gets whether the database can purge the recycled object.
 boolean getCanUndrop()
          Gets whether the database can undrop the recycled object.
 java.lang.String getCreateTime()
          Gets the time that the object was created.
 java.lang.Long getDropSCN()
          Gets the system change number (SCN) of the transaction which moved the object to the recycle bin
 java.lang.String getDropTime()
          Gets the time that the object was dropped.
 RecycledObject.Operation getOperation()
          Gets the operation that dropped the object.
 java.lang.String getOriginalName()
          Gets the name of the original object that has been dropped.
 java.lang.String getOriginalType()
          Gets the type of the original object that has been dropped.
 java.lang.String getPartitionName()
          Gets the name of the partition which was dropped
 DBObjectID getPurgeObjectID()
          Gets the id of the object which will get purged.
 DBObjectID getRelatedObjectID()
          Gets the id of the parent object.
 int getSpace()
          Gets how much space (in blocks) the object uses.
 java.lang.String getTablespaceName()
          Gets the name of the tablespace to which the object belongs.
 java.lang.String getType()
          Returns the type of this object.
 void setBaseObjectID(DBObjectID id)
          Sets the id of the base object.
 void setCanPurge(boolean canPurge)
          Sets whether the database can purge the recycled object.
 void setCanUndrop(boolean canUndrop)
          Sets whether the database can undrop the recycled object.
 void setCreateTime(java.lang.String createTime)
          Sets the time that the object was created.
 void setDropSCN(java.lang.Long dropSCN)
          Sets the system change number (SCN) of the transaction which moved the object to the recycle bin
 void setDropTime(java.lang.String dropTime)
          Sets the time that the object was dropped.
 void setOperation(RecycledObject.Operation operation)
          Sets the operation that dropped the object.
 void setOriginalName(java.lang.String origName)
          Sets the name of the original object that has been dropped.
 void setOriginalType(java.lang.String origType)
          Sets the type of the original object that has been dropped.
 void setPartitionName(java.lang.String partName)
          Sets the name of the partition which was dropped
 void setPurgeObjectID(DBObjectID id)
          Sets the id of the object which will get purged.
 void setRelatedObjectID(DBObjectID id)
          Sets the id of the parent object.
 void setSpace(int space)
          Sets how much space (in blocks) the object uses.
 void setTablespaceName(java.lang.String tsName)
          Sets the name of the tablespace to which the object belongs.
 
Methods inherited from class oracle.javatools.db.AbstractSchemaObject
addObjectListener, copyToImpl, equalsImpl, getParent, getSchema, removeObjectListener, setSchema
 
Methods inherited from class oracle.javatools.db.AbstractBuildableObject
addObjectListener, checkInit, checkInit, checkInitEx, copyToImpl, equalsImpl, fireObjectUpdated, getOwnedObjectsImpl, getProperties, getProperty, getProperty, getReferenceIDsImpl, needsInitialization, removeObjectListener, setProperties, setProperty
 
Methods inherited from class oracle.javatools.db.AbstractDBObject
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyToImpl, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.javatools.db.SystemObject
addObjectListener, fireObjectUpdated, removeObjectListener
 
Methods inherited from interface oracle.javatools.db.DBObject
copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, replaceReferenceIDs, setID, setName
 
Methods inherited from interface oracle.javatools.util.DynamicPropertySet
getProperties, getProperty, getProperty, setProperties, setProperty
 

Field Detail

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values
Constructor Detail

RecycledObject

public RecycledObject()

RecycledObject

public RecycledObject(java.lang.String name,
                      Schema schema,
                      DBObjectID id)
Method Detail

getType

public java.lang.String getType()
Description copied from interface: DBObject
Returns the type of this object. Valid types include things like tables, views, synonyms, and columns.

Returns:
a string describing the type of object.

getOriginalName

public java.lang.String getOriginalName()
Gets the name of the original object that has been dropped.


setOriginalName

public void setOriginalName(java.lang.String origName)
Sets the name of the original object that has been dropped.


getOriginalType

public java.lang.String getOriginalType()
Gets the type of the original object that has been dropped.


setOriginalType

public void setOriginalType(java.lang.String origType)
Sets the type of the original object that has been dropped.


getOperation

public RecycledObject.Operation getOperation()
Gets the operation that dropped the object.


setOperation

public void setOperation(RecycledObject.Operation operation)
Sets the operation that dropped the object.


getTablespaceName

public java.lang.String getTablespaceName()
Gets the name of the tablespace to which the object belongs.


setTablespaceName

public void setTablespaceName(java.lang.String tsName)
Sets the name of the tablespace to which the object belongs.


getCreateTime

public java.lang.String getCreateTime()
Gets the time that the object was created.


setCreateTime

public void setCreateTime(java.lang.String createTime)
Sets the time that the object was created.


getPartitionName

public java.lang.String getPartitionName()
Gets the name of the partition which was dropped


setPartitionName

public void setPartitionName(java.lang.String partName)
Sets the name of the partition which was dropped


getDropTime

public java.lang.String getDropTime()
Gets the time that the object was dropped.


setDropTime

public void setDropTime(java.lang.String dropTime)
Sets the time that the object was dropped.


canUndrop

@Deprecated
public boolean canUndrop()
Deprecated. use getCanUndrop()


getCanUndrop

public boolean getCanUndrop()
Gets whether the database can undrop the recycled object.


setCanUndrop

public void setCanUndrop(boolean canUndrop)
Sets whether the database can undrop the recycled object.


canPurge

@Deprecated
public boolean canPurge()
Deprecated. use getCanPurge()


getCanPurge

public boolean getCanPurge()
Gets whether the database can purge the recycled object.


setCanPurge

public void setCanPurge(boolean canPurge)
Sets whether the database can purge the recycled object.


getSpace

public int getSpace()
Gets how much space (in blocks) the object uses.


setSpace

public void setSpace(int space)
Sets how much space (in blocks) the object uses.


getDropSCN

public java.lang.Long getDropSCN()
Gets the system change number (SCN) of the transaction which moved the object to the recycle bin


setDropSCN

public void setDropSCN(java.lang.Long dropSCN)
Sets the system change number (SCN) of the transaction which moved the object to the recycle bin


getPurgeObjectID

public DBObjectID getPurgeObjectID()
Gets the id of the object which will get purged.


setPurgeObjectID

public void setPurgeObjectID(DBObjectID id)
Sets the id of the object which will get purged.


getBaseObjectID

public DBObjectID getBaseObjectID()
Gets the id of the base object.


setBaseObjectID

public void setBaseObjectID(DBObjectID id)
Sets the id of the base object.


getRelatedObjectID

public DBObjectID getRelatedObjectID()
Gets the id of the parent object.


setRelatedObjectID

public void setRelatedObjectID(DBObjectID id)
Sets the id of the parent object.


copyTo

public DBObject copyTo(DBObject target,
                       DBObject copyParent,
                       IDPolicy idPolicy)
Description copied from class: AbstractDBObject
Internal copy method used by the API to perform copy operations. All objects must implement this method if they are instantiable objects. Abstract objects (e.g. Relation) must NOT implement this method. The implementation should delegate to the copyToImpl method to copy the actual properties.

This method does not fix internal reference ids on copy. That is done by the calling DBObject.copyTo(DBObject, IDPolicy) method.

Specified by:
copyTo in class AbstractDBObject
See Also:
DBObject.copyTo(java.lang.Object), DBObject.copyTo(DBObject, boolean), AbstractDBObject.copyToImpl(oracle.javatools.db.AbstractDBObject, oracle.javatools.db.DBObject, oracle.javatools.db.IDPolicy)

copyToImpl

protected void copyToImpl(RecycledObject copy,
                          DBObject copyParent,
                          IDPolicy idPolicy)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

equalsImpl

protected boolean equalsImpl(RecycledObject target)

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

E13403-04

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