|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 2 (11.1.2.0.0) E17483-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jbo.common.NamedObjectImpl
oracle.jbo.rules.AbstractValidator
oracle.jbo.rules.JboAbstractValidator
oracle.jbo.rules.JboListValidator
oracle.jbo.server.JboSQLListValidator
public class JboSQLListValidator
A validator that tests for the presence of a literal value in a list of database values. The list of values is obtained by invoking the validator's SQL query, and then taking the values from the first column of the result.
Field Summary | |
---|---|
protected int |
mBindingStyle
|
Fields inherited from class oracle.jbo.rules.JboListValidator |
---|
mSource |
Fields inherited from class oracle.jbo.rules.JboAbstractValidator |
---|
mValidatingAttr |
Fields inherited from class oracle.jbo.rules.AbstractValidator |
---|
mbInverse, mDescription, mErrorMessageClass, mMsgExpr, mMsgId, mMsgIds, mResourceBundleId, mTriggeringAttributeNames, mTriggeringAttributes, mValidatingAttrName |
Fields inherited from class oracle.jbo.common.NamedObjectImpl |
---|
mFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX, RESID_SUFFIX |
Fields inherited from interface oracle.jbo.mom.xml.DefPersistable |
---|
XML_STATEMENT |
Constructor Summary | |
---|---|
JboSQLListValidator()
Creates an uninitialized list validator. |
Method Summary | |
---|---|
int |
getBindingStyle()
|
java.util.Vector |
getList(java.lang.Object source)
Gets this validator's list of values. |
java.lang.String |
getSQL()
Gets this validator's SQL statement. |
void |
loadXMLContents(DefElement elem)
|
void |
setBindingStyle(int bindingStyle)
|
void |
setSQL(java.lang.String str)
Sets this validator's SQL statement. |
java.lang.String |
toString()
Internal: For debugging purposes only. |
Methods inherited from class oracle.jbo.rules.JboListValidator |
---|
convertToVector, doValidateValue, getDefXMLElementTag, getList, getValidatorSubType, initialize, initValidatorProperties, setList, validateValue, validateValueWithContext, writeChildren |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.jbo.rules.JboValidatorHints |
---|
getTriggeringAttributeNames, isTransactionLevel |
Methods inherited from interface oracle.jbo.rules.JboValidatorInterface |
---|
getDescription, setDescription |
Methods inherited from interface oracle.jbo.mom.xml.DefPersistable |
---|
isDirty, isNew, setDirty, setNew |
Field Detail |
---|
protected int mBindingStyle
Constructor Detail |
---|
public JboSQLListValidator()
Invoke setSQL()
to provide a list of comparison values.
Method Detail |
---|
public int getBindingStyle()
public void setBindingStyle(int bindingStyle)
public void setSQL(java.lang.String str)
str
- an SQL statement.public java.lang.String getSQL()
public java.util.Vector getList(java.lang.Object source)
This method executes the validator's SQL statement and extracts and the first column of the result.
getList
in class JboListValidator
source
- the source row.
public java.lang.String toString()
toString
in class JboListValidator
public void loadXMLContents(DefElement elem)
loadXMLContents
in class JboListValidator
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 2 (11.1.2.0.0) E17483-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |