Oracle Fusion Middleware extensions for XML based Datamodel Framework
11g Release 1 (11.1.1.6)

E22566-06

oracle.apps.fnd.applxdf.xdfapi
Class Constraint

java.lang.Object
  extended by oracle.apps.fnd.applxdf.xdfapi.XdfObject
      extended by oracle.apps.fnd.applxdf.xdfapi.Constraint
Direct Known Subclasses:
CheckConstraint, FKConstraint, PKConstraint, UKConstraint

public abstract class Constraint
extends XdfObject

A subtype of XdfObject - Constraint.

Author:
izhang <irene.zhang@oracle.com>

Field Summary
protected  boolean mEnable
           
protected static java.lang.String TYPE
           
 
Fields inherited from class oracle.apps.fnd.applxdf.xdfapi.XdfObject
ctx, DEBUG, mBaseObjType, mName, mPersistenceFormat, mSchemaName, mUsrPros, mXmlDoc, mXPath, mXPathExpr
 
Constructor Summary
protected Constraint(oracle.xml.parser.v2.XMLElement xmlElem)
          Constructs a constraint object with given xdf document.
protected Constraint(oracle.xml.parser.v2.XMLElement xmlElem, boolean persistenceFormat)
          Constructs a constraint object with given xdf document.
 
Method Summary
protected  void createXPath()
          Creates the XPath instances required for this class.
protected  java.util.ArrayList extractConsColNames(oracle.xml.parser.v2.XMLElement xmlElem)
          Extracts the column names for the constraint columns.
protected  boolean extractEnable()
          Extracts the ENABLE state of the constraints.
protected  boolean extractEnableOld()
          Extracts the ENABLE state of the constraints.
protected  java.lang.String extractName()
          Extracts the Constraint Name.
protected  java.lang.String extractNameOld()
          Extracts the Constraint Name.
abstract  java.lang.String getConstraintType()
          Retrieves the type of constraint represented by this instance.
 java.lang.String getType()
          Get the type of this XdfObject.
 boolean isEnable()
          Check if the constraint is enabled
protected  void setEnable(boolean bEnable)
          Set the status of constraint enable
 
Methods inherited from class oracle.apps.fnd.applxdf.xdfapi.XdfObject
getName, getPersistenceFormat, getSchemaName, getXmlDoc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mEnable

protected boolean mEnable

TYPE

protected static final java.lang.String TYPE
See Also:
Constant Field Values
Constructor Detail

Constraint

protected Constraint(oracle.xml.parser.v2.XMLElement xmlElem)
Constructs a constraint object with given xdf document.

Parameters:
xmlElem -

Constraint

protected Constraint(oracle.xml.parser.v2.XMLElement xmlElem,
                     boolean persistenceFormat)
Constructs a constraint object with given xdf document.

Parameters:
xmlElem -
Method Detail

getConstraintType

public abstract java.lang.String getConstraintType()
Retrieves the type of constraint represented by this instance. The types currentlly include PK_CONSTRAINT, UK_CONSTRAINT, FK_CONSTRAINT, and CK_CONSTRAINT .

Returns:
a string value indicating the type of constraint.

getType

public java.lang.String getType()
Get the type of this XdfObject.

Specified by:
getType in class XdfObject
Returns:
String

isEnable

public boolean isEnable()
Check if the constraint is enabled

Returns:
boolean - true/false

setEnable

protected void setEnable(boolean bEnable)
Set the status of constraint enable

Parameters:
bEnable -

extractNameOld

protected java.lang.String extractNameOld()
Extracts the Constraint Name.

Returns:
Constraint name

extractEnableOld

protected boolean extractEnableOld()
Extracts the ENABLE state of the constraints.

Returns:
true if constraint is enabled.

createXPath

protected void createXPath()
Creates the XPath instances required for this class.


extractName

protected java.lang.String extractName()
Extracts the Constraint Name.

Returns:
Constraint name

extractEnable

protected boolean extractEnable()
Extracts the ENABLE state of the constraints.

Returns:
true if constraint is enabled.

extractConsColNames

protected java.util.ArrayList extractConsColNames(oracle.xml.parser.v2.XMLElement xmlElem)
Extracts the column names for the constraint columns.

Parameters:
xmlElem -
Returns:

Oracle Fusion Middleware extensions for XML based Datamodel Framework
11g Release 1 (11.1.1.6)

E22566-06

Copyright © 2012 Oracle. All Rights Reserved.