Oracle ADF Model and Business Components API Reference 10.1.2 B14022-02


oracle.jbo.server.rules
Class JboVOListValidator

java.lang.Object
  extended byoracle.jbo.rules.AbstractValidator
      extended byoracle.jbo.server.rules.JboBaseValidator
          extended byoracle.jbo.server.rules.JboListValidator
              extended byoracle.jbo.server.rules.JboVOListValidator

All Implemented Interfaces:
java.util.EventListener, JbiValidator, VetoableChangeListener

public class JboVOListValidator
extends JboListValidator

A validator that tests for the presence of a literal value in a list of database values. A View Object of at least two columns must be specified. The list of values is obtained by invoking the View Object's query, and taking the values from the second column of the result.

Since:
Jdeveloper 3.0

Field Summary

Fields inherited from class oracle.jbo.server.rules.JboBaseValidator
mLValue, mValidatingAttr

Fields inherited from class oracle.jbo.rules.AbstractValidator
mDescription, mErrorMessageClass, mMsgId, mValidatingAttrName

Constructor Summary
JboVOListValidator()
Creates an uninitialized list validator.
JboVOListValidator(boolean bInverse, java.lang.Object owner, java.lang.String str)
Creates a list validator.

Method Summary
java.util.Vector getList()
Gets this validator's list of values.
java.lang.String getVOAttrName()
Gets this validator's attribute name.
java.lang.String getVOName()
Gets the name of this validator's View Object.
void setVOAttrName(java.lang.String voname)
Sets this validator's View Object and attribute names.
java.lang.String toString()
Internal: For debugging purposes only.

Methods inherited from class oracle.jbo.server.rules.JboListValidator
convertToVector, setList, validateValue

Methods inherited from class oracle.jbo.server.rules.JboBaseValidator
initialize, raiseException, setNewValue, setValidatingAttribute, setValidatingAttribute, vetoableChange

Methods inherited from class oracle.jbo.rules.AbstractValidator
convertToJava, getDescription, getErrorMessageClass, getErrorMsgId, getInverse, getValidatingAttributeName, setDescription, setErrorMessageClass, setErrorMsgId, setInverse, setValidatingAttributeName

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Methods inherited from interface oracle.jbo.server.rules.JbiValidator
getDescription, setDescription

Methods inherited from interface oracle.jbo.server.util.VetoableChangeListener
vetoableChange

Constructor Detail

JboVOListValidator

public JboVOListValidator()
Creates an uninitialized list validator.

Invoke setList() to provide a list of comparison values.


JboVOListValidator

public JboVOListValidator(boolean bInverse,
                          java.lang.Object owner,
                          java.lang.String str)
Creates a list validator.

Method Detail

getList

public java.util.Vector getList()
Gets this validator's list of values.

This method executes the View Object's query and extracts the second column of the result.

Overrides:
getList in class JboListValidator
Returns:
a vector containing the values from the second column of the result.

getVOName

public java.lang.String getVOName()
Gets the name of this validator's View Object.
Returns:
the View Object's name.
See Also:
JboQOListValidator#setQueryAttrName

getVOAttrName

public java.lang.String getVOAttrName()
Gets this validator's attribute name.
Returns:
the attribute name.
See Also:
JboQOListValidator#setQueryAttrName

setVOAttrName

public void setVOAttrName(java.lang.String voname)
Sets this validator's View Object and attribute names.
Parameters:
voname - the qualified name of the attribute, consisting of a series of component names separated by "." characters. The part preceding the final dot becomes the View Object name, and the part after the final dot becomes the attribute name.

toString

public java.lang.String toString()
Internal: For debugging purposes only.
Overrides:
toString in class JboListValidator

Oracle ADF Model and Business Components API Reference 10.1.2 B14022-02


Copyright © 1997, 2005, Oracle. All rights reserved.