Class symantec.itools.db.beans.brl.adapter.ValidationAdapter
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.db.beans.brl.adapter.ValidationAdapter
Object
|
+----ComputedColAdapter
|
+----symantec.itools.db.beans.brl.adapter.ValidationAdapter
- public class ValidationAdapter
- extends ComputedColAdapter
- implements Serializable
Class which glues validation business rule implementation classes with
QueryNavigator, RecordDefinition and database events.
- Version:
- 1.0 07/24/98
- Author:
- Puru Balakrishnan
-
OUTDATATYPE_STR
-
-
VALIDATION_TITLE
-
-
comparisionOperators
-
-
customMessage
-
-
displayDialogOnFail
-
-
listeners
-
-
printMessageToLog
-
-
targetColumns
-
-
symantec.itools.db.beans.brl.adapter.ValidationAdapter()
- Default constructor
-
addValidationEventListener(ValidationEventListener)
- Method to add a ValidationEventListener
-
delegateComputation()
-
-
fireValidationEvent(boolean)
-
-
getComparisionOperators()
- Method to get a list of Comparison Operators
-
getCustomMessage()
- Method to get the custom message
-
getOutputNameNotAvailMsg()
-
-
getTargetColumns()
- Method to get a list of target columns
-
getValidationRow()
-
-
handleValidationException(ValidationException)
-
-
initComputeRow(PersistentObject)
-
-
initComputeRow(Object, int)
-
-
initSourceMembers()
-
-
initTargetColumns(PersistentObject)
-
-
initTargetColumns(Object, int)
-
-
initTargetColumns(Object, String)
-
-
initTargetMembers()
-
-
isAllInputsInitialized()
-
-
isAllTargetInputsInitialized()
-
-
isColumnInRecordChange(PersistentObject)
-
-
isColumnInRule(int)
-
-
isColumnIndexModified(CompColInputMember[], Vector)
-
-
isDisplayDialogOnFail()
- Method to find out if dialog is to be displayed
if validation failed
-
isPrintMessageToLog()
- Method to find out if the validation message is to
be printed out to the log window
-
performDIValueChange(Object, String)
-
-
processAfterColumnChangeEvent(ColumnDataEvent)
-
-
processAfterRecordNavigateEvent(RecordNavigateEvent)
-
-
processAfterRecordSaveEvent(RecordSaveEvent)
-
-
processBeforeColumnChangeEvent(ColumnDataEvent)
-
-
processBeforeRecordNavigateEvent(RecordNavigateEvent)
-
-
processBeforeRecordSaveEvent(RecordSaveEvent)
-
-
processBorderRecordEvent(RecordNavigateEvent)
-
-
processSingletonRowChange(RecordNavigateEvent)
-
-
processSingletonRowChange(RecordSaveEvent)
-
-
processSingletonRowChange(PersistentObject)
-
-
reInitStatusForMembers()
-
-
reInitStatusForTargetMembers()
-
-
removeValidationEventListener(ValidationEventListener)
- Method to remove a ValidationEventListener
-
setComparisionOperators(OperatorMember[])
- Method to set the Comparision Operators
-
setCustomMessage(String)
- Method to set the custom message
-
setDisplayDialogOnFail(boolean)
- Method to set if dialog is to be displayed
if validation failed
-
setPrintMessageToLog(boolean)
- Method to set if validation message is to be printed to log window
if validation failed
-
setTargetColumns(CompColInputMember[])
- Method to set a list of target columns
-
setValueInRow(DataBindingsChangeEvent)
-
-
validate()
-
Method to force the validation by the adapter.
OUTDATATYPE_STR
public static final java.lang.String OUTDATATYPE_STR
VALIDATION_TITLE
public static java.lang.String VALIDATION_TITLE
comparisionOperators
protected symantec.itools.db.beans.brl.OperatorMember[] comparisionOperators
customMessage
protected java.lang.String customMessage
displayDialogOnFail
protected boolean displayDialogOnFail
listeners
protected transient java.util.Vector listeners
printMessageToLog
protected boolean printMessageToLog
targetColumns
protected symantec.itools.db.beans.brl.CompColInputMember[] targetColumns
ValidationAdapter
public ValidationAdapter()
- Default constructor
addValidationEventListener
public void addValidationEventListener(ValidationEventListener l)
- Method to add a ValidationEventListener
- Parameters:
- listener - ValidationEventListener to be added
delegateComputation
protected void delegateComputation()
- Overrides:
- delegateComputation in class ComputedColAdapter
fireValidationEvent
protected void fireValidationEvent(boolean valid)
getComparisionOperators
public symantec.itools.db.beans.brl.OperatorMember[] getComparisionOperators()
- Method to get a list of Comparison Operators
- Returns:
- array of CompColMember
getCustomMessage
public java.lang.String getCustomMessage()
- Method to get the custom message
- Returns:
- String
getOutputNameNotAvailMsg
protected java.lang.String getOutputNameNotAvailMsg()
- Overrides:
- getOutputNameNotAvailMsg in class ComputedColAdapter
getTargetColumns
public symantec.itools.db.beans.brl.CompColInputMember[] getTargetColumns()
- Method to get a list of target columns
- Returns:
- array of CompColMember
getValidationRow
protected symantec.itools.db.beans.brl.ValidationRow getValidationRow()
handleValidationException
protected synchronized void handleValidationException(ValidationException e)
initComputeRow
protected void initComputeRow(PersistentObject recordObj)
- Overrides:
- initComputeRow in class ComputedColAdapter
initComputeRow
protected void initComputeRow(Object value,
int columnIndex)
- Overrides:
- initComputeRow in class ComputedColAdapter
initSourceMembers
protected void initSourceMembers()
- Overrides:
- initSourceMembers in class ComputedColAdapter
initTargetColumns
protected void initTargetColumns(PersistentObject recordObj)
initTargetColumns
protected void initTargetColumns(Object value,
int columnIndex)
initTargetColumns
protected void initTargetColumns(Object value,
String dataItemName)
initTargetMembers
protected void initTargetMembers()
isAllInputsInitialized
protected boolean isAllInputsInitialized()
- Overrides:
- isAllInputsInitialized in class ComputedColAdapter
isAllTargetInputsInitialized
protected boolean isAllTargetInputsInitialized()
isColumnInRecordChange
protected boolean isColumnInRecordChange(PersistentObject recordObj)
isColumnInRule
protected boolean isColumnInRule(int index)
- Overrides:
- isColumnInRule in class ComputedColAdapter
isColumnIndexModified
protected boolean isColumnIndexModified(CompColInputMember[] arrColMember,
Vector vIndexes)
isDisplayDialogOnFail
public boolean isDisplayDialogOnFail()
- Method to find out if dialog is to be displayed
if validation failed
- Returns:
- true if dialog is to be displayed if validation failed.
isPrintMessageToLog
public boolean isPrintMessageToLog()
- Method to find out if the validation message is to
be printed out to the log window
- Returns:
- true if validation message is going to the log window
performDIValueChange
protected void performDIValueChange(Object value,
String dataItemName)
- Overrides:
- performDIValueChange in class ComputedColAdapter
processAfterColumnChangeEvent
protected void processAfterColumnChangeEvent(ColumnDataEvent e)
- Overrides:
- processAfterColumnChangeEvent in class ComputedColAdapter
processAfterRecordNavigateEvent
protected void processAfterRecordNavigateEvent(RecordNavigateEvent e)
- Overrides:
- processAfterRecordNavigateEvent in class ComputedColAdapter
processAfterRecordSaveEvent
protected void processAfterRecordSaveEvent(RecordSaveEvent e)
- Overrides:
- processAfterRecordSaveEvent in class ComputedColAdapter
processBeforeColumnChangeEvent
protected void processBeforeColumnChangeEvent(ColumnDataEvent e)
- Overrides:
- processBeforeColumnChangeEvent in class ComputedColAdapter
processBeforeRecordNavigateEvent
protected void processBeforeRecordNavigateEvent(RecordNavigateEvent e)
- Overrides:
- processBeforeRecordNavigateEvent in class ComputedColAdapter
processBeforeRecordSaveEvent
protected void processBeforeRecordSaveEvent(RecordSaveEvent e)
- Overrides:
- processBeforeRecordSaveEvent in class ComputedColAdapter
processBorderRecordEvent
protected void processBorderRecordEvent(RecordNavigateEvent e)
- Overrides:
- processBorderRecordEvent in class ComputedColAdapter
processSingletonRowChange
protected void processSingletonRowChange(RecordNavigateEvent e)
- Overrides:
- processSingletonRowChange in class ComputedColAdapter
processSingletonRowChange
protected void processSingletonRowChange(RecordSaveEvent e)
- Overrides:
- processSingletonRowChange in class ComputedColAdapter
processSingletonRowChange
protected void processSingletonRowChange(PersistentObject recordObj)
- Overrides:
- processSingletonRowChange in class ComputedColAdapter
reInitStatusForMembers
protected void reInitStatusForMembers()
- Overrides:
- reInitStatusForMembers in class ComputedColAdapter
reInitStatusForTargetMembers
protected void reInitStatusForTargetMembers()
removeValidationEventListener
public void removeValidationEventListener(ValidationEventListener l)
- Method to remove a ValidationEventListener
- Parameters:
- listener - ValidationEventListener to be removed
setComparisionOperators
public void setComparisionOperators(OperatorMember[] operators)
- Method to set the Comparision Operators
- Parameters:
- operators - array of Comparision Operators
setCustomMessage
public void setCustomMessage(String msg)
- Method to set the custom message
- Parameters:
- String - new msg
setDisplayDialogOnFail
public void setDisplayDialogOnFail(boolean val)
- Method to set if dialog is to be displayed
if validation failed
- Parameters:
- val - a boolean to display dialog on validation failure.
setPrintMessageToLog
public void setPrintMessageToLog(boolean val)
- Method to set if validation message is to be printed to log window
if validation failed
- Parameters:
- val - a boolean to set the validation message to the log window
setTargetColumns
public void setTargetColumns(CompColInputMember[] cols)
- Method to set a list of target columns
- Parameters:
- cols - array of CompColInputMember
setValueInRow
protected void setValueInRow(DataBindingsChangeEvent e)
validate
public synchronized void validate()
-
Method to force the validation by the adapter.
This method can be used if validation needs to be applied at
the user's discretion using the current set of data
All Packages Class Hierarchy This Package Previous Next Index