oracle.jdeveloper.cm.ds.db
Class Table
java.lang.Object
oracle.jdeveloper.cm.ds.db.AbstractDBObject
oracle.jdeveloper.cm.ds.db.AbstractSchemaObject
oracle.jdeveloper.cm.ds.db.Relation
oracle.jdeveloper.cm.ds.db.Table
- All Implemented Interfaces:
- Copyable, DBObject, SchemaObject, Subject
- public class Table
- extends Relation
Model of a database table.
Fields inherited from interface oracle.jdeveloper.cm.ds.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. |
Methods inherited from class oracle.jdeveloper.cm.ds.db.Relation |
addColumn, addConstraint, copyToImpl, equalsImpl, getColumn, getColumns, getConstraint, getConstraints, removeColumn, removeConstraint, setColumns, setConstraints |
Methods inherited from class oracle.jdeveloper.cm.ds.db.AbstractDBObject |
attach, compareToImpl, copyToImpl, detach, equalsImpl, getID, getName, getProperties, getProperty, hashCode, notifyObservers, setID, setName, setProperties, setProperty, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TABLE_TYPE_KEY
public static final java.lang.String TABLE_TYPE_KEY
- Property controlling the type of Table represented by this model. The valid values are
Normal
, Transaction
, and Session
.
- See Also:
- Constant Field Values
TABLE_TYPE_NORMAL
public static final java.lang.String TABLE_TYPE_NORMAL
-
- See Also:
- Constant Field Values
TABLE_TYPE_TRANSACTION_TEMP
public static final java.lang.String TABLE_TYPE_TRANSACTION_TEMP
-
- See Also:
- Constant Field Values
TABLE_TYPE_SESSION_TEMP
public static final java.lang.String TABLE_TYPE_SESSION_TEMP
-
- See Also:
- Constant Field Values
TYPE
public static final java.lang.String TYPE
-
- See Also:
- Constant Field Values
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
copyTo
public java.lang.Object copyTo(java.lang.Object target)
- Description copied from interface:
DBObject
- Copies the state of this DBObject to another instance. If
null
is specified for the target, a new instance will be created.
The entire state of the object will be copied, with a few exceptions. In particular, any observers registered will NOT be copied. In cases where this instance contains child DBObjects, new instances of those children will be created, and the state copied to them. The copy will thus contain its own unique state; after making the copy, changing one instance will not cause any changes to occur to the copy. The properties will be copied; however, copies will not be made of the values referenced by the properties - thus, the copy will refer to the same instance as the original. Child objects that are copied will still point to the original parent; it is the responsibility of a copied parent to update the parent of copies of its children point to the copy of itself.
The ID associated with this object will not be copied. If the copy is intended to be a temporary copy of this object (to be used in a dialog editing the object for example), then the caller should explicitly set the ID of the copy to be the same as on this object. However, if the new object is intended to exist separately from this object, the caller should ensure that the new object have a different ID from this object.
-
- Parameters:
target
- The object to copy to. If target is null
, a new instance will be created, and the state will be copied to that object.
- Returns:
- the copy.
copyToImpl
protected void copyToImpl(Table copy)
equals
public boolean equals(java.lang.Object target)
-
- Overrides:
equals
in class AbstractDBObject
equalsImpl
protected boolean equalsImpl(Table target)
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)
Copyright © 1997, 2004, Oracle. All rights reserved.