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


Class Table

  extended by oracle.javatools.db.AbstractDBObject
      extended by oracle.javatools.db.AbstractBuildableObject
          extended by oracle.javatools.db.AbstractSchemaObject
              extended by oracle.javatools.db.Relation
                  extended by oracle.javatools.db.Table
All Implemented Interfaces:
DBObject, SchemaObject, SystemObject, Copyable, DynamicPropertySet
Direct Known Subclasses:

public class Table
extends Relation

Model of a database table.

Nested Class Summary
static class Table.TableType
          Different types of Table supported in the API.
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject
Field Summary
static java.lang.String TABLE_TYPE_KEY
          Property controlling the type of Table represented by this model.
static java.lang.String TYPE
Fields inherited from interface oracle.javatools.db.DBObject
Constructor Summary
          Constructs a new Table.
Table(java.lang.String name, Schema schema)
          Constructs a new Table in the specified schema with the specified name.
Method Summary
 void addIndex(Index index)
 DBObject copyTo(DBObject target, DBObject copyParent, IDPolicy idPolicy)
          Internal copy method used by the API to perform copy operations.
 boolean equals(java.lang.Object target)
 Index getIndex(java.lang.String idxName)
 Index[] getIndexes()
 java.lang.String getType()
          Returns the type of this object.
 void removeIndex(Index index)
 void setIndexes(Index[] indexes)
 void setSchema(Schema schema)
          Sets the Schema of this object.
Methods inherited from class oracle.javatools.db.Relation
addColumn, addColumn, addConstraint, getColumn, getColumns, getConstraint, getConstraints, getOwnedObjectsImpl, removeColumn, removeConstraint, setColumns, setConstraints
Methods inherited from class oracle.javatools.db.AbstractSchemaObject
addObjectListener, copyToImpl, equalsImpl, getParent, getSchema, removeObjectListener
Methods inherited from class oracle.javatools.db.AbstractBuildableObject
addObjectListener, checkInit, checkInit, checkInitEx, copyToImpl, equalsImpl, fireObjectUpdated, 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


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


public static final java.lang.String TABLE_TYPE_KEY
Property controlling the type of Table represented by this model.

See Also:
Table.TableType, Constant Field Values
Constructor Detail


public Table()
Constructs a new Table.


public Table(java.lang.String name,
             Schema schema)
Constructs a new Table in the specified schema with the specified name.

name - a string containing the name of the table
schema - the schema containing the table
Method Detail


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)


public boolean equals(java.lang.Object target)
equals in class java.lang.Object


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.

a string describing the type of object.


public Index[] getIndexes()


public void setIndexes(Index[] indexes)


public void addIndex(Index index)


public void removeIndex(Index index)


public Index getIndex(java.lang.String idxName)


public void setSchema(Schema schema)
Description copied from interface: SchemaObject
Sets the Schema of this object.

Specified by:
setSchema in interface SchemaObject
setSchema in class AbstractSchemaObject
schema - the Schema containing this object

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


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