Extension SDK 9.0.5

oracle.jdeveloper.cm.ds.db
Class ColumnConstraint

java.lang.Object
  extended byoracle.jdeveloper.cm.ds.db.AbstractDBObject
      extended byoracle.jdeveloper.cm.ds.db.Constraint
          extended byoracle.jdeveloper.cm.ds.db.ColumnConstraint
All Implemented Interfaces:
Copyable, DBObject, Subject
Direct Known Subclasses:
FKConstraint, UniqueConstraint

public abstract class ColumnConstraint
extends Constraint


Field Summary
 
Fields inherited from class oracle.jdeveloper.cm.ds.db.Constraint
TYPE
 
Fields inherited from interface oracle.jdeveloper.cm.ds.db.DBObject
COMMENT
 
Fields inherited from interface oracle.ide.addin.Subject
OBJECT_MODIFIED
 
Method Summary
 void addColumn(Column col)
          Adds a constrained column.
protected  void copyToImpl(ColumnConstraint copy)
           
protected  boolean equalsImpl(ColumnConstraint target)
           
 Column[] getColumns()
          Retrieves the constrained columns.
 void removeColumn(Column col)
          Removes a column from the list of constrained columns.
 void setColumns(Column[] columns)
          Sets the constrained columns.
 void setRelation(Relation relation)
          Sets the Relation that owns this Constraint.
 
Methods inherited from class oracle.jdeveloper.cm.ds.db.Constraint
copyToImpl, equalsImpl, getConstraintType, getRelation, getType, isEnabled, setEnabled
 
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
 

Method Detail

copyToImpl

protected void copyToImpl(ColumnConstraint copy)

equalsImpl

protected boolean equalsImpl(ColumnConstraint target)

getColumns

public Column[] getColumns()
Retrieves the constrained columns.

Returns:
the array containing the list of columns being constrained

setColumns

public void setColumns(Column[] columns)
Sets the constrained columns.

Parameters:
columns - the array containing the list of columns being constrained

addColumn

public void addColumn(Column col)
Adds a constrained column.

Parameters:
col - the Column to add to the list of constrained columns

removeColumn

public void removeColumn(Column col)
Removes a column from the list of constrained columns.

Parameters:
col - the Column to remove to the list of constrained columns

setRelation

public void setRelation(Relation relation)
Description copied from class: Constraint
Sets the Relation that owns this Constraint.

Overrides:
setRelation in class Constraint
Parameters:
relation - the Relation that owns this constraint.

Extension SDK

 

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