01: /**
02: * Objective Database Abstraction Layer (ODAL)
03: * Copyright (c) 2004, The ODAL Development Group
04: * All rights reserved.
05: * For definition of the ODAL Development Group please refer to LICENCE.txt file
06: *
07: * Distributable under LGPL license.
08: * See terms of license at gnu.org.
09: */package com.completex.objective.components.persistency.rule;
10:
11: import com.completex.objective.components.persistency.Rule;
12:
13: /**
14: * @author Gennady Krizhevsky
15: */
16: public interface RecordValidator extends Rule, FieldValidator,
17: com.completex.objective.components.persistency.Cloneable {
18: /**
19: * Returns FieldValidator[][] where 1st index is field (column) index, 2nd index is
20: * FieldValidator positional index whithin the field validators array for the field
21: *
22: * @return FieldValidator[][] where 1st index is field (column) index, 2nd index is
23: * FieldValidator positional index whithin the field validators array for the field
24: */
25: FieldValidator[][] getFieldValidators();
26:
27: RecordValidator addFieldValidator(int fieldIndex,
28: FieldValidator fieldValidator);
29:
30: void setFieldValidators(int fieldIndex, FieldValidator[] validators);
31:
32: Object clone() throws CloneNotSupportedException;
33: }
|