javax.infobus
Interface RowsetValidate
- public abstract interface RowsetValidate
Producers may implement the RowsetValidate interface to provide a means of
validating the contents of a Rowset data item. This interface is optional:
producers can implement it or not as they choose; consumers may use it or
not if it is present.
Method Summary |
void |
validateCurrentRow()
Explicitly validates data in the current row only. |
void |
validateRowset()
This method validates data in the current rowset taken as a set of rows. |
validateCurrentRow
public void validateCurrentRow()
throws RowsetValidationException
- Explicitly validates data in the current row only.
- Throws:
- RowsetValidationException - if the data fails validation
validateRowset
public void validateRowset()
throws RowsetValidationException
- This method validates data in the current rowset taken as a set of rows.
For example, this method could check that the sum of one particular
column in the current set of rows does not exceed a particular value.
- Throws:
- RowsetValidationException - if the data fails validation