2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.cdm
.persistence
.hibernate
;
11 import org
.apache
.logging
.log4j
.LogManager
;
12 import org
.apache
.logging
.log4j
.Logger
;
13 import org
.hibernate
.persister
.entity
.EntityPersister
;
15 import eu
.etaxonomy
.cdm
.model
.common
.ICdmBase
;
16 import eu
.etaxonomy
.cdm
.model
.validation
.CRUDEventType
;
17 import eu
.etaxonomy
.cdm
.persistence
.dao
.validation
.IEntityValidationCrud
;
18 import eu
.etaxonomy
.cdm
.persistence
.validation
.EntityValidationTaskBase
;
19 import eu
.etaxonomy
.cdm
.persistence
.validation
.Level2ValidationTask
;
21 @SuppressWarnings("serial")
22 public class Level2ValidationEventListener
extends ValidationEventListenerBase
{
24 @SuppressWarnings("unused")
25 private static final Logger logger
= LogManager
.getLogger();
27 public Level2ValidationEventListener(IEntityValidationCrud dao
){
32 protected EntityValidationTaskBase
createValidationTask(ICdmBase entity
, CRUDEventType trigger
) {
33 return new Level2ValidationTask(entity
, trigger
, getDao());
37 protected final String
levelString() {
42 public boolean requiresPostCommitHanding(EntityPersister persister
) {