@Concealed public class JboExistsValidator extends JboAbstractValidator
ValidatorConstants.MessageFlavor| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
mAltKeyName |
protected static int |
mCounterId |
protected boolean |
mIsEffectiveDated |
protected java.lang.String[] |
mTargetAttrNames |
protected java.lang.String |
mTargetName |
protected AttributeDef[] |
mViewKeyAttrs |
protected AttributeDef[] |
mViewKeyTrigAttrs |
protected java.util.WeakHashMap |
mVOCache |
protected java.lang.String |
mVOName |
mValidatingAttrmbInverse, mDescription, mErrorMessageClass, mMsgId, mMsgIds, mResourceBundleId, mTriggeringAttributeNames, mTriggeringAttributes, mValidatingAttrNamemFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX, RESID_SUFFIXATTR, ATTR_STR, BETWEEN, EO, EO_STR, EQUALTO, EXPR, EXPR_STR, GREATERTHAN, GREATERTHANEQUALTO, JBO, JBO_STR, LESSTHAN, LESSTHANEQUALTO, LITERAL, LITERAL_STR, MANDATORY_STR, mCompOperTypeVals, mRhsTypeVals, mSeverityVals, NOTEQUALTO, PNAME_CompareLength, PNAME_CompareType, PNAME_CompareValue, PNAME_DataType, PNAME_Description, PNAME_ErrorMessageExpressions, PNAME_ErrorMessageId, PNAME_ErrorMessageIds, PNAME_Exposed, PNAME_ExprValueSupplier, PNAME_ForPersonalization, PNAME_Inverse, PNAME_MessageFlavor, PNAME_Name, PNAME_OnAttribute, PNAME_OnAttributes, PNAME_OnCondition, PNAME_OperandType, PNAME_Severity, PNAME_Subtype, PNAME_TransactionLevel, PNAME_TransientExpression, PNAME_Trigger, PNAME_ValidationBeanClass, PNAME_ValName, PNAME_xmlns, PRECISION_SCALE_STR, SEVERITY_ERROR, SEVERITY_RECOVERABLE_ERROR_INDEX, SEVERITY_VETOABLE_WARNING, SEVERITY_WARNING, SQL, SQL_STR, TRIGGER_SUBTYPE_PREFIX, VALIDATION_XMLNS, VALIDATOR_MSG_ID_PREFIX, VO, VO_STR, VO_USAGE, VO_USAGE_STRXML_STATEMENT| Modifier | Constructor and Description |
|---|---|
|
JboExistsValidator() |
protected |
JboExistsValidator(boolean inverse,
java.lang.String targetName,
java.lang.String[] targetAttrNames,
java.lang.String[] onAttrNames) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
protected ViewCriteria |
createEffDateViewObjectVC(ViewObjectImpl vo,
java.lang.Object[] srcValues,
java.util.ArrayList bindVars,
java.util.ArrayList bindVals) |
protected ViewObjectImpl |
createViewObject(ApplicationModule am,
java.lang.String targetVOName) |
protected boolean |
findDateEffectiveRow(ViewObjectImpl vo,
java.lang.Object[] valueArr,
RowImpl srcRow) |
protected boolean |
findDateEffectiveRow(ViewRowSetImpl rs,
java.lang.Object[] valueArr,
RowImpl srcRow) |
protected ViewObjectImpl |
findOrCreateViewObject(java.lang.Object source,
java.lang.String targetVOName) |
protected void |
findTargetViewKey(ViewObjectImpl vo) |
AttributeDef |
findTrigAttrByTgtAttrName(java.lang.String tgtAttrName) |
java.lang.String |
getDefXMLElementTag() |
protected AttributeDef |
getErrorReportAttrDef(JboValidatorContext evObj) |
java.lang.String[] |
getTargetAttributeNames() |
java.lang.String |
getTargetName() |
java.lang.Object[] |
getValueArray(JboValidatorContext evObj,
AttributeDef[] attrDefs) |
java.lang.Object[] |
getValueArray(Row source,
AttributeDef[] attrDefs) |
protected java.lang.String |
getVOAMName() |
void |
initValidatorProperties(java.util.HashMap props) |
boolean |
isTransactionLevel(JboValidatorContext valCtx) |
protected boolean |
isValueArrayNull(java.lang.Object[] valueArr) |
void |
loadXMLContents(DefElement elem) |
protected void |
setName(java.lang.String name,
java.lang.String prefix) |
protected void |
setNewValue(java.lang.Object newValue)
When the newValue is an Entity, get the attribute's value
by using the getAttribute method on the entity.
|
void |
setTargetAttributeNames(java.lang.String[] targetAttrNames) |
void |
setTargetName(java.lang.String targetName) |
java.lang.String |
toString() |
void |
validateMany(java.util.ArrayList valCtxs) |
void |
validateMany(java.util.ArrayList valCtxs,
int startIndex,
int numToValidate,
java.util.ArrayList excs) |
boolean |
validateValue(java.lang.Object value)
Validates a value.
|
void |
writeContents(DefWriter jos)
Objects should write their persistence output in this method
|
applyValidatorPersonalization, closeObject, createException, diffContents, editCodeSource, ensureCodeSource, getDefXMLNameSpace, getErrorMsgId, getFullName, getImageLoc, getMessageFlavor, getName, getOperationDefinitions, getOrigObject, getRowOperationDefinitions, getTriggeringAttributeDefs, getValidatingAttributeName, getValidatorType, getValueToValidate, getXMLElementTag, initialize, isForPersonalization, isReadOnly, lookupExprDef, raiseException, resolve, setForPersonalization, setInitialized, setMessageFlavor, setName, setOrigObject, setValidatingAttribute, setValidatingAttribute, validate, validateValueWithContext, writeObjectapplyDiffChildren, applyDiffContents, applyValidatorPersonalization, beginDiffObjects, convertToJava, copyErrorMsgInfo, createAttributeException, createExprValueSupplier, createRowException, diffChildren, diffObjects, ensureDifferDetails, ensureVariableManager, getDefTypeName, getDescription, getErrorMessageClass, getErrorMsgExpressionDefs, getErrorMsgExpressions, getErrorMsgIds, getExprIdentifier, getExprValueSupplierType, getInverse, getMergeableFullName, getMergeableName, getMessageBundleClass, getOnCondition, getOnConditionDef, getOwner, getResourceBundleDef, getResourceBundleId, getSeverity, getTriggeringAttributeNames, getTriggerType, getValidatorSubType, getVariableManager, hasErrorMsg, hasValidationCondition, hasVariables, initErrMsgParms, initTriggeringAttributeDefs, isDirty, isMovedToAttrLevel, isNew, isTransactionLevel, isValidatable, loadVariables, lookupMessageDef, parseSeverityStr, prepareException, raiseException, readStringArrayList, readTransientExpression, readTransientExpression, readUserObject, readUserObject, readUserObjectTrim, readUserObjectTrim, readUserStringElementsMap, setDefaultDescription, setDescription, setDirty, setErrorMessageClass, setErrorMsgExpressionDefs, setErrorMsgExpressions, setErrorMsgId, setErrorMsgIds, setExprValueSupplierType, setInverse, setNew, setOnCondition, setResourceBundleDef, setResourceBundleId, setSeverity, setTransactionLevel, setTriggeringAttributeNames, setTriggerTypeString, setValidatingAttributeName, setValidatorSubType, writeChildrenallocatePropertyMap, getAllProperties, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyExpressionDef, getPropertyExpressionsMap, getPropertyMap, getPropertyNamesSet, getRawPropertyValue, getResourcesFromBundle, getStringFromMessageBundle, isPropertyExpression, mergePropertyMap, refreshProperty, removeProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, resolvePropertyRaw, setFullName, setParent, setPropertiesMap, setPropertiesMap2, setProperty, setProperty, setPropertyExpression, setPropertyMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTriggeringAttributeNames, isTransactionLevelgetDescription, setDescriptionisDirty, isNew, setDirty, setNewwriteChildrenprotected java.lang.String mAltKeyName
protected boolean mIsEffectiveDated
protected java.lang.String mTargetName
protected java.lang.String[] mTargetAttrNames
protected AttributeDef[] mViewKeyAttrs
protected AttributeDef[] mViewKeyTrigAttrs
protected java.util.WeakHashMap mVOCache
protected java.lang.String mVOName
protected static int mCounterId
public JboExistsValidator()
protected JboExistsValidator(boolean inverse,
java.lang.String targetName,
java.lang.String[] targetAttrNames,
java.lang.String[] onAttrNames)
public java.lang.Object clone()
clone in class JboAbstractValidatorpublic java.lang.String getTargetName()
public void setTargetName(java.lang.String targetName)
public java.lang.String[] getTargetAttributeNames()
public void setTargetAttributeNames(java.lang.String[] targetAttrNames)
protected void setNewValue(java.lang.Object newValue)
throws java.lang.Exception
JboAbstractValidatorsetNewValue in class JboAbstractValidatornewValue - either the attribute's value or a value to use to compare
in the validator.java.lang.Exceptionpublic java.lang.Object[] getValueArray(Row source, AttributeDef[] attrDefs)
public java.lang.Object[] getValueArray(JboValidatorContext evObj, AttributeDef[] attrDefs)
public AttributeDef findTrigAttrByTgtAttrName(java.lang.String tgtAttrName)
public boolean validateValue(java.lang.Object value)
JboAbstractValidatorSubclasses must implement this method.
validateValue in class JboAbstractValidatorvalue - the object to be validated.true if the object is valid.public java.lang.String toString()
toString in class java.lang.Objectpublic void initValidatorProperties(java.util.HashMap props)
initValidatorProperties in interface JboValidatorHintsinitValidatorProperties in class AbstractValidatorpublic void loadXMLContents(DefElement elem)
loadXMLContents in class JboAbstractValidatorprotected AttributeDef getErrorReportAttrDef(JboValidatorContext evObj)
getErrorReportAttrDef in class JboAbstractValidatorpublic java.lang.String getDefXMLElementTag()
getDefXMLElementTag in interface PersistentDefinitiongetDefXMLElementTag in class AbstractValidatorpublic void writeContents(DefWriter jos)
PersistentDefinitionwriteContents in interface PersistentDefinitionwriteContents in class JboAbstractValidatorjos - the Output storage for persistencepublic void validateMany(java.util.ArrayList valCtxs)
validateMany in class JboAbstractValidatorpublic void validateMany(java.util.ArrayList valCtxs,
int startIndex,
int numToValidate,
java.util.ArrayList excs)
public boolean isTransactionLevel(JboValidatorContext valCtx)
isTransactionLevel in class AbstractValidatorprotected ViewObjectImpl findOrCreateViewObject(java.lang.Object source, java.lang.String targetVOName)
protected ViewObjectImpl createViewObject(ApplicationModule am, java.lang.String targetVOName)
protected void setName(java.lang.String name,
java.lang.String prefix)
protected java.lang.String getVOAMName()
protected void findTargetViewKey(ViewObjectImpl vo)
protected ViewCriteria createEffDateViewObjectVC(ViewObjectImpl vo, java.lang.Object[] srcValues, java.util.ArrayList bindVars, java.util.ArrayList bindVals)
protected boolean findDateEffectiveRow(ViewRowSetImpl rs, java.lang.Object[] valueArr, RowImpl srcRow)
protected boolean findDateEffectiveRow(ViewObjectImpl vo, java.lang.Object[] valueArr, RowImpl srcRow)
protected boolean isValueArrayNull(java.lang.Object[] valueArr)