Revision 36fbea3e
Added by Andreas Müller almost 9 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/validation/IEntityValidationResultDao.java | ||
---|---|---|
10 | 10 |
import eu.etaxonomy.cdm.model.validation.EntityConstraintViolation; |
11 | 11 |
import eu.etaxonomy.cdm.model.validation.EntityValidationResult; |
12 | 12 |
import eu.etaxonomy.cdm.persistence.dao.common.ICdmEntityDao; |
13 |
import eu.etaxonomy.cdm.persistence.validation.EntityValidationTask; |
|
13 |
import eu.etaxonomy.cdm.persistence.validation.EntityValidationTaskBase;
|
|
14 | 14 |
import eu.etaxonomy.cdm.model.validation.CRUDEventType; |
15 | 15 |
import eu.etaxonomy.cdm.model.validation.Severity; |
16 | 16 |
|
... | ... | |
21 | 21 |
* entities themselves, with all constraints they violated. This interface provides the |
22 | 22 |
* latter perspective while {@link IEntityConstraintViolationDao} provides the former |
23 | 23 |
* perspective. Together these methods provide all persistency operations required |
24 |
* internally by the CVI (notably {@link EntityValidationTask}s) and by clients. In fact, |
|
24 |
* internally by the CVI (notably {@link EntityValidationTaskBase}s) and by clients. In fact,
|
|
25 | 25 |
* strictly speaking implementors should override methods from the superclass by throwing |
26 | 26 |
* an exception. They should in any case not be exposed via a service. |
27 | 27 |
* |
... | ... | |
35 | 35 |
* results of the same entity will be cleared first. Note that this method should not |
36 | 36 |
* be exposed via cdmlib-services, because this is a backend-only affair. Populating |
37 | 37 |
* the error tables is done by the CVI (more particularly by an |
38 |
* {@link EntityValidationTask}). External software like the TaxEditor can and should |
|
38 |
* {@link EntityValidationTaskBase}). External software like the TaxEditor can and should
|
|
39 | 39 |
* not have access to this method. |
40 | 40 |
* |
41 | 41 |
* @param errors |
cdmlib-persistence/src/test/java/eu/etaxonomy/cdm/persistence/validation/EmployeeWithLongRunningValidation.java | ||
---|---|---|
36 | 36 |
* ValidationExecutor and we want to be sure each submitted task will be treated as a new |
37 | 37 |
* task, otherwise the task would not enter the queue in the first place. The easiest way |
38 | 38 |
* to accomplish this is to just let the equals() method simply return false. See |
39 |
* {@link EntityValidationTask#equals(Object)}. |
|
39 |
* {@link EntityValidationTaskBase#equals(Object)}.
|
|
40 | 40 |
*/ |
41 | 41 |
public boolean equals(Object obj){ |
42 | 42 |
return false; |
cdmlib-persistence/src/test/java/eu/etaxonomy/cdm/persistence/validation/EntityValidationTaskQueueTest.java | ||
---|---|---|
14 | 14 |
|
15 | 15 |
public class EntityValidationTaskQueueTest { |
16 | 16 |
|
17 |
private EntityValidationTask evt1; |
|
18 |
private EntityValidationTask evt2; |
|
19 |
private EntityValidationTask evt3; |
|
17 |
private EntityValidationTaskBase evt1;
|
|
18 |
private EntityValidationTaskBase evt2;
|
|
19 |
private EntityValidationTaskBase evt3;
|
|
20 | 20 |
|
21 | 21 |
|
22 | 22 |
/* |
Also available in: Unified diff
rename abstract class