|
Extension SDK 9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jdeveloper.cm.ds.db.AbstractDBObject
oracle.jdeveloper.cm.ds.db.AbstractSchemaObject
oracle.jdeveloper.cm.ds.db.Relation
A Relation
represents the basic entity of a relational
database. Examples of relations include tables and views.
A Relation contains a list of Column
s and a list of
Constraint
s on the values for the columns in the Relation.
Column and Constraint instances are managed by Relation instances; making
a copy of a Relation imples making a copy of each Column and Constraint
contained within the Relation.
Field Summary |
Fields inherited from interface oracle.jdeveloper.cm.ds.db.DBObject |
COMMENT |
Fields inherited from interface oracle.ide.addin.Subject |
OBJECT_MODIFIED |
Constructor Summary | |
protected |
Relation()
Constructs a new Relation. |
protected |
Relation(java.lang.String name,
Schema schema)
Constructs a new Relation with the specified name in the specified schema. |
Method Summary | |
void |
addColumn(Column col)
Adds one column to this relation. |
void |
addConstraint(Constraint constraint)
Adds a Constraint to this relation. |
protected void |
copyToImpl(Relation copy)
|
protected boolean |
equalsImpl(Relation target)
|
Column |
getColumn(java.lang.String name)
Retrieves one column by name. |
Column[] |
getColumns()
Retrieves the list of columns contained in this relation. |
Constraint |
getConstraint(java.lang.String name)
Retrieves a Constraint by name. |
Constraint[] |
getConstraints()
Retrieves the list of constraints on this relation. |
void |
removeColumn(Column col)
Removes a column from this relation. |
void |
removeConstraint(Constraint constraint)
Removes a Constraint from this relation. |
void |
setColumns(Column[] newCols)
Sets the entire list of columns, replacing any that have previously been added. |
void |
setConstraints(Constraint[] constraints)
Sets the list of constraints on this relation. |
Methods inherited from class oracle.jdeveloper.cm.ds.db.AbstractSchemaObject |
copyToImpl, equalsImpl, getSchema, setSchema |
Methods inherited from class oracle.jdeveloper.cm.ds.db.AbstractDBObject |
attach, compareToImpl, copyToImpl, detach, equals, 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 |
Methods inherited from interface oracle.jdeveloper.cm.ds.db.DBObject |
copyTo, getID, getName, getProperties, getProperty, getType, setID, setName, setProperties, setProperty |
Methods inherited from interface oracle.ide.addin.Subject |
attach, detach, notifyObservers |
Constructor Detail |
protected Relation()
protected Relation(java.lang.String name, Schema schema)
name
- a string containing the name of the new relationschema
- the schema containing the new relationMethod Detail |
protected void copyToImpl(Relation copy)
protected boolean equalsImpl(Relation target)
public void setColumns(Column[] newCols)
newCols
- an array containing the new list of columnspublic Column[] getColumns()
public void addColumn(Column col)
col
- the new column to addpublic Column getColumn(java.lang.String name)
null
public void removeColumn(Column col)
col
- the column to removepublic Constraint[] getConstraints()
public void setConstraints(Constraint[] constraints)
constraints
- an array containing the list of constraintspublic Constraint getConstraint(java.lang.String name)
name
- a string containing the name of the constraint
null
if
no constraint of that name exists in this relationpublic void addConstraint(Constraint constraint)
constraint
- the constraint to addpublic void removeConstraint(Constraint constraint)
constraint
- the constraint to remove
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.