|
Oracle Data-aware Controls Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ValidationListener interface is intended for receiving
ValidationEvents fired by
an InfoObject
.
InfoObjects fire validation events to:
ValidationAdapter provides an empty implementation of this interface. Listeners that are not interested in receiving all the events should subclass from ValidationAdapter and override appropriate methods.
ValidationListeners can be registered with the AttributeInfo, RowSetInfo, LOVRowSetInfo, or SessionInfo with increasing levels of scope. The higher up they are placed, the more general they should be. For example, to validate that column values are within a certain range, register the listener against the column. To ensure that a number of columns fulfill certain validation rules, register the listener against the RowSet. To enforce integrety constraints on multiple RowSets, register the listener with the SessionInfo.
The individual navigation items are validated from smallest-grain to coarsest:
LOVAttributeInfo
,
AttributeInfo
,
SessionInfo
,
RowSetInfo
,
ValidationAdapter
,
ValidationManager
,
ValidationEvent
,
ValidationException
,
InfoObject.addValidationListener(oracle.dacf.dataset.ValidationListener)
Method Summary | |
void |
validateAttribute(ValidationEvent event)
Called to validate column level data changes. |
void |
validateRow(ValidationEvent event)
Called to validate row level data changes. |
void |
validateRowSet(ValidationEvent event)
Called to validate queryview (RowSet) level data changes. |
void |
validateSession(ValidationEvent event)
Called to validate session level data changes. |
Method Detail |
public void validateAttribute(ValidationEvent event) throws ValidationException
event
- the event.ValidationException
- if the data is invalid.public void validateRow(ValidationEvent event) throws ValidationException
event
- the event.ValidationException
- if the data is invalid.public void validateRowSet(ValidationEvent event) throws ValidationException
event
- the event.ValidationException
- if the data is invalid.public void validateSession(ValidationEvent event) throws ValidationException
event
- the event.ValidationException
- if the data is invalid.
|
Oracle Data-aware Controls Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |