|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-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
public abstract class Constraint
A Constraint
represents a constraint on a table or view.
Nested Class Summary | |
---|---|
static class |
Constraint.DeferrableState |
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject |
---|
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport |
Field Summary | |
---|---|
static java.lang.String |
TYPE |
Fields inherited from interface oracle.javatools.db.DBObject |
---|
COMMENT |
Constructor Summary | |
---|---|
protected |
Constraint() Constructs a new Constraint. |
protected |
Constraint(java.lang.String name, Relation relation) Constructs a new Constraint on a relation with a specific name, and adds the constraint to the relation. |
Method Summary | |
---|---|
static java.util.Collection<Constraint> |
getConstraints(Relation rel, java.lang.String... types) Lists the constraints on a given Relation that are of the given constraint types. |
abstract java.lang.String |
getConstraintType() Retrieves the type of constraint represented by this instance. |
Constraint.DeferrableState |
getDeferrableState() The deferrable state of the Constraint. |
Relation |
getRelation() Gets the Relation that owns this Constraint. |
java.lang.String |
getType() Returns the type of this object. |
boolean |
isEnabled() Whether this constraint is current enabled. |
void |
setDeferrableState(Constraint.DeferrableState defer) Sets the deferrable state of this constraint. |
void |
setEnabled(boolean enabled) Sets the enabled state of this constraint. |
void |
setRelation(Relation relation) Sets the Relation that owns this Constraint. |
Methods inherited from class oracle.javatools.db.AbstractChildDBObject |
---|
copyToImpl, findParent, getParent, getProperty, setParent, setProperty |
Methods inherited from class oracle.javatools.db.AbstractDBObject |
---|
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getOwnedObjectsImpl, getProperties, getProperty, getReferenceIDs, getReferenceIDsImpl, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties, 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, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, replaceReferenceIDs, setID, setName |
Methods inherited from interface oracle.javatools.util.DynamicPropertySet |
---|
getProperties, getProperty, setProperties |
Field Detail |
---|
public static final java.lang.String TYPE
Constructor Detail |
---|
protected Constraint()
protected Constraint(java.lang.String name, Relation relation)
name
- a string containing the constraint namerelation
- the relation being constrainedMethod Detail |
---|
public void setEnabled(boolean enabled)
enabled
- a boolean value indicating whether this constraint it is enabled.public boolean isEnabled()
public void setDeferrableState(Constraint.DeferrableState defer)
defer
- the deferrable state for the constraint.public Constraint.DeferrableState getDeferrableState()
public java.lang.String getType()
DBObject
public abstract java.lang.String getConstraintType()
public Relation getRelation()
Relation
that owns this Constraint.public void setRelation(Relation relation)
Relation
that owns this Constraint.relation
- the Relation that owns this constraint.public static java.util.Collection<Constraint> getConstraints(Relation rel, java.lang.String... types)
rel
- the relation to list the constraints fromtypes
- the types of constraint requiredgetConstraintType()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |