Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/validation/Validator.java @ 263:2098db2e8fbd M1
Code documentation.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 17 Jul 2013 09:40:53 +0200 |
parents | 0de24f5e7c01 |
children | 183f8116d9a6 |
comparison
equal
deleted
inserted
replaced
262:f4b359aa9127 | 263:2098db2e8fbd |
---|---|
7 * | 7 * |
8 * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> | 8 * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> |
9 */ | 9 */ |
10 public interface Validator | 10 public interface Validator |
11 { | 11 { |
12 /** | |
13 * Validate a database object. | |
14 * | |
15 * @param object The object to validate. | |
16 * @param update The database operation. | |
17 * TRUE indicates that the object should be updated, FALSE | |
18 * if the object is a new Object. | |
19 * @return Map containing warnings. | |
20 * @throws ValidationException | |
21 */ | |
12 public Map<String, Integer> validate(Object object, boolean update) | 22 public Map<String, Integer> validate(Object object, boolean update) |
13 throws ValidationException; | 23 throws ValidationException; |
14 } | 24 } |