|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.db.AbstractDBObject oracle.javatools.db.AbstractChildDBObject oracle.javatools.db.Constraint oracle.javatools.db.CheckConstraint
public class CheckConstraint
A CheckConstraint
constrains a table or view based on a
conditional expression.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject |
---|
AbstractDBObject.ChildSupport |
Field Summary | |
---|---|
static java.lang.String |
CONSTRAINT_TYPE
|
Fields inherited from class oracle.javatools.db.Constraint |
---|
TYPE |
Fields inherited from interface oracle.javatools.db.DBObject |
---|
COMMENT |
Constructor Summary | |
---|---|
CheckConstraint()
Creates a new CheckConstraint. |
|
CheckConstraint(java.lang.String name,
Relation relation)
Constructs a new CheckConstraint on a relation with a specific name. |
Method Summary | |
---|---|
DBObject |
copyTo(DBObject target,
DBObject copyParent,
IDPolicy idPolicy)
Internal copy method used by the API to perform copy operations. |
protected void |
copyToImpl(CheckConstraint copy,
DBObject copyParent,
IDPolicy idPolicy)
|
boolean |
equals(java.lang.Object target)
|
protected boolean |
equalsImpl(CheckConstraint target)
|
DBObject |
findOwnedObject(DBObjectID id)
Returns a child of this object that has the given ID. |
java.lang.String |
getCheckCondition()
Deprecated. - use getCheckConditionFragment() |
SQLFragment |
getCheckConditionFragment()
Retrieves the conditional expression represented by this constraint. |
java.lang.String |
getConstraintType()
Retrieves the type of constraint represented by this instance. |
protected void |
getOwnedObjectsImpl(java.util.Collection<DBObject> objs,
java.lang.String... types)
Used by all the final children methods. |
void |
setCheckCondition(java.lang.String condition)
Deprecated. - use setCheckConditionFragment(SQLFragment) |
void |
setCheckConditionFragment(SQLFragment condition)
Sets the conditional expression represented by this constraint. |
Methods inherited from class oracle.javatools.db.Constraint |
---|
copyToImpl, equalsImpl, getConstraints, getRelation, getType, isEnabled, setEnabled, setRelation |
Methods inherited from class oracle.javatools.db.AbstractChildDBObject |
---|
copyToImpl, findParent, getParent, setParent |
Methods inherited from class oracle.javatools.db.AbstractDBObject |
---|
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyToImpl, equalsImpl, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getProperties, getProperty, getProperty, getReferenceIDs, getReferenceIDsImpl, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, 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.javatools.db.DBObject |
---|
copyTo, copyTo, copyTo, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, replaceReferenceIDs, setID, setName |
Methods inherited from interface oracle.javatools.util.DynamicPropertySet |
---|
getProperties, getProperty, getProperty, setProperties, setProperty |
Field Detail |
---|
public static final java.lang.String CONSTRAINT_TYPE
Constructor Detail |
---|
public CheckConstraint(java.lang.String name, Relation relation)
name
- a string representing name of the constraintrelation
- the relation being constrainedpublic CheckConstraint()
Method Detail |
---|
public DBObject copyTo(DBObject target, DBObject copyParent, IDPolicy idPolicy)
AbstractDBObject
This method does not fix internal reference ids on copy. That is done by
the calling DBObject.copyTo(DBObject, IDPolicy)
method.
copyTo
in class AbstractDBObject
DBObject.copyTo(java.lang.Object)
,
DBObject.copyTo(DBObject, boolean)
,
AbstractDBObject.copyToImpl(oracle.javatools.db.AbstractDBObject, oracle.javatools.db.DBObject, oracle.javatools.db.IDPolicy)
public boolean equals(java.lang.Object target)
equals
in class java.lang.Object
protected void copyToImpl(CheckConstraint copy, DBObject copyParent, IDPolicy idPolicy)
protected boolean equalsImpl(CheckConstraint target)
public java.lang.String getConstraintType()
Constraint
getConstraintType
in class Constraint
@Deprecated public java.lang.String getCheckCondition()
@Deprecated public void setCheckCondition(java.lang.String condition)
condition
- a string containing the conditional expressionpublic SQLFragment getCheckConditionFragment()
public void setCheckConditionFragment(SQLFragment condition)
condition
- a SQLFragment representing the conditional expressionprotected void getOwnedObjectsImpl(java.util.Collection<DBObject> objs, java.lang.String... types)
AbstractDBObject
includesType
to check the types vararg.
getOwnedObjectsImpl
in class AbstractDBObject
objs
- a Collection of the apppropriate children.types
- a vararg of the type(s) to search forAbstractDBObject.includesType(java.lang.String, java.lang.String...)
public DBObject findOwnedObject(DBObjectID id)
AbstractDBObject
findOwnedObject
in interface DBObject
findOwnedObject
in class AbstractDBObject
id
- the id to look for
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |