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

E13403-07

oracle.javatools.db
Class Table

java.lang.Object
  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:
MaterializedView

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
 
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 class oracle.javatools.db.AbstractSystemObject
m_listeners
 
Fields inherited from interface oracle.javatools.db.DBObject
COMMENT
 
Constructor Summary
Table()
          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
addObjectListener, copyToImpl, equalsImpl, getProperty, getSchema, removeObjectListener, setProperty
 
Methods inherited from class oracle.javatools.db.AbstractSystemObject
addObjectListener, fireObjectUpdated, getParent, 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.SystemObject
addObjectListener, fireObjectUpdated, 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

TYPE

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

TABLE_TYPE_KEY

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

Table

public Table()
Constructs a new Table.


Table

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

Parameters:
name - a string containing the name of the table
schema - the schema containing the table
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.

getIndexes

public Index[] getIndexes()

setIndexes

public void setIndexes(Index[] indexes)

addIndex

public void addIndex(Index index)

removeIndex

public void removeIndex(Index index)

getIndex

public Index getIndex(java.lang.String idxName)

setSchema

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

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

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

E13403-07

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