Extension SDK

oracle.jdeveloper.cm.ds.db
Class Constraint

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

public abstract class Constraint
extends SchemaObject


Field Summary
static int CHECK_CONSTRAINT
           
static java.lang.String CHECK_CONSTRAINT_LABEL
           
static java.lang.String[] CONSTRAINT_TYPE_LABELS
           
static java.lang.String DEFAULT_NAME
           
static int FOREIGN_KEY_CONSTRAINT
           
static java.lang.String FOREIGN_KEY_CONSTRAINT_LABEL
           
static int PRIMARY_KEY_CONSTRAINT
           
static java.lang.String PRIMARY_KEY_CONSTRAINT_LABEL
           
static int UNIQUE_CONSTRAINT
           
static java.lang.String UNIQUE_CONSTRAINT_LABEL
           
 
Fields inherited from class oracle.jdeveloper.cm.ds.db.DBObject
ANONYMOUS_BLOCK, COLUMN, CONSTRAINT, FUNCTION, INDEX, PACKAGE_BODY, PACKAGE_SPEC, PROCEDURE, SEQUENCE, SYNONYM, TABLE, WORKAREA
 
Constructor Summary
protected Constraint()
           
protected Constraint(java.lang.String catalog, java.lang.String schema, java.lang.String tableName, java.lang.String name)
           
 
Method Summary
protected  void copyToImpl(Constraint copy)
           
 boolean equals(java.lang.Object target)
           
protected  boolean equalsImpl(Constraint target)
           
 java.util.Iterator getChildren()
          If this object has subobjects (i.e.
static java.lang.String getConstraintLabelFromType(int type)
           
abstract  int getConstraintType()
           
static int getConstraintTypeFromLabel(java.lang.String label)
           
 java.lang.String getTableName()
           
 java.lang.String getType()
          Returns the type of object this is.
 boolean isEnabled()
           
 void setEnabled(boolean enabled)
           
 void setTableName(java.lang.String table)
           
 
Methods inherited from class oracle.jdeveloper.cm.ds.db.SchemaObject
copyToImpl, equalsImpl, getCatalog, getSchema, setCatalog, setSchema
 
Methods inherited from class oracle.jdeveloper.cm.ds.db.DBObject
copyTo, copyToImpl, equalsImpl, getName, setName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PRIMARY_KEY_CONSTRAINT

public static final int PRIMARY_KEY_CONSTRAINT
See Also:
Constant Field Values

FOREIGN_KEY_CONSTRAINT

public static final int FOREIGN_KEY_CONSTRAINT
See Also:
Constant Field Values

UNIQUE_CONSTRAINT

public static final int UNIQUE_CONSTRAINT
See Also:
Constant Field Values

CHECK_CONSTRAINT

public static final int CHECK_CONSTRAINT
See Also:
Constant Field Values

PRIMARY_KEY_CONSTRAINT_LABEL

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

FOREIGN_KEY_CONSTRAINT_LABEL

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

UNIQUE_CONSTRAINT_LABEL

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

CHECK_CONSTRAINT_LABEL

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

DEFAULT_NAME

public static final java.lang.String DEFAULT_NAME

CONSTRAINT_TYPE_LABELS

public static final java.lang.String[] CONSTRAINT_TYPE_LABELS
Constructor Detail

Constraint

protected Constraint()

Constraint

protected Constraint(java.lang.String catalog,
                     java.lang.String schema,
                     java.lang.String tableName,
                     java.lang.String name)
Method Detail

getConstraintLabelFromType

public static java.lang.String getConstraintLabelFromType(int type)

getConstraintTypeFromLabel

public static int getConstraintTypeFromLabel(java.lang.String label)

copyToImpl

protected void copyToImpl(Constraint copy)

equals

public boolean equals(java.lang.Object target)
Specified by:
equals in class DBObject

equalsImpl

protected boolean equalsImpl(Constraint target)

setTableName

public void setTableName(java.lang.String table)

getTableName

public java.lang.String getTableName()

setEnabled

public void setEnabled(boolean enabled)

isEnabled

public boolean isEnabled()

getChildren

public final java.util.Iterator getChildren()
Description copied from class: DBObject
If this object has subobjects (i.e. a table contains columns), then this will return an Iterator on that list of children, otherwise it will return null.

Specified by:
getChildren in class DBObject

getType

public java.lang.String getType()
Description copied from class: DBObject
Returns the type of object this is. The object type is defined as constants in DBObject

Specified by:
getType in class DBObject
See Also:
DBObject.TABLE, DBObject.WORKAREA, DBObject.COLUMN

getConstraintType

public abstract int getConstraintType()

Extension SDK

 

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