Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (


Class Table

  extended by oracle.javatools.db.AbstractDBObject
      extended by oracle.javatools.db.AbstractBuildableObject
          extended by oracle.javatools.db.AbstractSystemObject
              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
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport
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)
 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
copyToImpl, equalsImpl, getProperty, getSchema, setProperty
Methods inherited from class oracle.javatools.db.AbstractSystemObject
addObjectListener, addObjectListener, addObjectListener, fireObjectUpdated, getParent, removeObjectListener, removeObjectListener, removeObjectListener
Methods inherited from class oracle.javatools.db.AbstractBuildableObject
checkInit, checkInit, getProperties, getReferenceIDsImpl, needsInitialization
Methods inherited from class oracle.javatools.db.AbstractDBObject
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface oracle.javatools.db.SchemaObject
addObjectListener, removeObjectListener
Methods inherited from interface oracle.javatools.db.SystemObject
addObjectListener, addObjectListener, fireObjectUpdated, removeObjectListener, removeObjectListener
Methods inherited from interface oracle.javatools.db.DBObject
copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getReferenceIDs, replaceReferenceIDs, setID, setName
Methods inherited from interface oracle.javatools.util.DynamicPropertySet
getProperties, getProperty, setProperties

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 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
11g Release 2 (


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