oracle.jdeveloper.cm.ds.db
Class Constraint
java.lang.Object
oracle.jdeveloper.cm.ds.db.DBObject
oracle.jdeveloper.cm.ds.db.SchemaObject
oracle.jdeveloper.cm.ds.db.Constraint
- All Implemented Interfaces:
- Copyable
- Direct Known Subclasses:
- CheckConstraint, FKConstraint, UniqueConstraint
- public abstract class Constraint
- extends SchemaObject
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)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
Constraint
protected Constraint()
Constraint
protected Constraint(java.lang.String catalog,
java.lang.String schema,
java.lang.String tableName,
java.lang.String name)
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()
Copyright ©1997, 2003, Oracle. All rights reserved.