Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.0.0)

E10653-01

oracle.jbo.rules
Class RulesBeanUtils

java.lang.Object
  extended by oracle.jbo.rules.RulesBeanUtils
All Implemented Interfaces:
ValidatorConstants

public class RulesBeanUtils
extends java.lang.Object
implements ValidatorConstants

Internal: Applications should not use this class.

Since:
JDevloper 3.0

Field Summary
 
Fields inherited from interface oracle.jbo.rules.ValidatorConstants
ATTR, ATTR_STR, EO, EO_STR, EQUALTO, EXPR, EXPR_STR, GREATERTHAN, GREATERTHANEQUALTO, JBO, JBO_STR, LESSTHAN, LESSTHANEQUALTO, LITERAL, LITERAL_STR, MANDATORY_STR, mCompOperTypeVals, mRhsTypeVals, mSeverityVals, PNAME_CompareLength, PNAME_CompareType, PNAME_CompareValue, PNAME_DataType, PNAME_ErrorMessageExpressions, PNAME_ErrorMessageId, PNAME_ErrorMessageIds, PNAME_Exposed, PNAME_ForPersonalization, PNAME_Inverse, PNAME_Name, PNAME_OnAttribute, PNAME_OnAttributes, PNAME_OnCondition, PNAME_OperandType, PNAME_Severity, PNAME_Subtype, PNAME_TransactionLevel, PNAME_ValidationBeanClass, PNAME_ValName, PNAME_xmlns, PRECISION_SCALE_STR, SEVERITY_ERROR, SEVERITY_RECOVERABLE_ERROR, SEVERITY_VETOABLE_WARNING, SEVERITY_WARNING, SQL, SQL_STR, VALIDATION_XMLNS, VALIDATOR_MSG_ID_PREFIX, VO, VO_STR, VO_USAGE, VO_USAGE_STR
 
Constructor Summary
RulesBeanUtils()
           
 
Method Summary
static JboValidatorInterface createUserValidator(JboValidatorInterface val)
           
static JboValidatorInterface createValidator(java.lang.String validatorType, java.lang.String validatorSubType)
           
static JboValidatorInterface loadValidationRule(DefElement elem, java.lang.Class errorMessageClz)
           
static JboValidatorInterface loadValidationRule(DefElement elem, ResourceBundleDef resDef)
           
static java.lang.Object loadValidator(DefinitionManager defMgr, DefElement elem)
           
static JboValidatorInterface loadValidatorBean(DefElement elem)
           
static void loadValidators(DefElement elem, ValidationManager valObj, java.lang.Class msgBundle)
           
static void loadValidators(DefElement elem, ValidationManager valObj, ResourceBundleDef resDef)
           
static void loadValidators(DefinitionManager defMgr, DefElement elem, java.util.ArrayList validatorList, java.util.ArrayList persValidatorList)
           
static void raiseException(java.lang.Class resBundleClass, java.lang.String errorCode, java.lang.Object source, int objType, java.lang.String objName, AttributeDef attr, java.lang.Object newVal, java.lang.String methodName, java.lang.Exception detail)
           
static void raiseException(ResourceBundleDef resBundleDef, java.lang.String errorCode, java.lang.Object source, int objType, java.lang.String objName, AttributeDef attr, java.lang.Object newVal, java.lang.String methodName, java.lang.Exception detail)
           
static AttrValException validate(java.util.Iterator validators, Row row, JboValidatorContext ev, boolean notDeferred)
          Validate the new value by applying all the validator rules applied to this attribute.
static AttrValException validateObject(java.util.Iterator validators, JboValidatorContext ev, boolean notDeferred)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RulesBeanUtils

public RulesBeanUtils()
Method Detail

loadValidators

public static void loadValidators(DefElement elem,
                                  ValidationManager valObj,
                                  java.lang.Class msgBundle)

loadValidators

public static void loadValidators(DefElement elem,
                                  ValidationManager valObj,
                                  ResourceBundleDef resDef)

loadValidators

public static void loadValidators(DefinitionManager defMgr,
                                  DefElement elem,
                                  java.util.ArrayList validatorList,
                                  java.util.ArrayList persValidatorList)

loadValidatorBean

public static JboValidatorInterface loadValidatorBean(DefElement elem)

createUserValidator

public static JboValidatorInterface createUserValidator(JboValidatorInterface val)

raiseException

public static void raiseException(java.lang.Class resBundleClass,
                                  java.lang.String errorCode,
                                  java.lang.Object source,
                                  int objType,
                                  java.lang.String objName,
                                  AttributeDef attr,
                                  java.lang.Object newVal,
                                  java.lang.String methodName,
                                  java.lang.Exception detail)

raiseException

public static void raiseException(ResourceBundleDef resBundleDef,
                                  java.lang.String errorCode,
                                  java.lang.Object source,
                                  int objType,
                                  java.lang.String objName,
                                  AttributeDef attr,
                                  java.lang.Object newVal,
                                  java.lang.String methodName,
                                  java.lang.Exception detail)

loadValidator

public static java.lang.Object loadValidator(DefinitionManager defMgr,
                                             DefElement elem)

createValidator

public static JboValidatorInterface createValidator(java.lang.String validatorType,
                                                    java.lang.String validatorSubType)

loadValidationRule

public static JboValidatorInterface loadValidationRule(DefElement elem,
                                                       java.lang.Class errorMessageClz)

loadValidationRule

public static JboValidatorInterface loadValidationRule(DefElement elem,
                                                       ResourceBundleDef resDef)

validate

public static AttrValException validate(java.util.Iterator validators,
                                        Row row,
                                        JboValidatorContext ev,
                                        boolean notDeferred)
Validate the new value by applying all the validator rules applied to this attribute.

Throws:
ValidationException - if an exception occurs during validation of the new value for this attribute.

validateObject

public static AttrValException validateObject(java.util.Iterator validators,
                                              JboValidatorContext ev,
                                              boolean notDeferred)

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.0.0)

E10653-01

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