1
|
/**
|
2
|
* Copyright (C) 2018 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
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.
|
8
|
*/
|
9
|
package eu.etaxonomy.cdm.persistence.hibernate;
|
10
|
|
11
|
import org.hibernate.action.spi.BeforeTransactionCompletionProcess;
|
12
|
import org.hibernate.event.spi.PostInsertEvent;
|
13
|
import org.hibernate.event.spi.PostInsertEventListener;
|
14
|
import org.hibernate.event.spi.PostUpdateEvent;
|
15
|
import org.hibernate.event.spi.PostUpdateEventListener;
|
16
|
import org.hibernate.persister.entity.EntityPersister;
|
17
|
|
18
|
/**
|
19
|
* @author a.kohlbecker
|
20
|
* @since Oct 10, 2018
|
21
|
*
|
22
|
*/
|
23
|
public interface ITaxonGraphHibernateListener extends PostInsertEventListener, PostUpdateEventListener {
|
24
|
|
25
|
@Override
|
26
|
boolean requiresPostCommitHanding(EntityPersister persister);
|
27
|
|
28
|
@Override
|
29
|
void onPostInsert(PostInsertEvent event);
|
30
|
|
31
|
@Override
|
32
|
void onPostUpdate(PostUpdateEvent event);
|
33
|
|
34
|
void registerProcessClass(Class<? extends BeforeTransactionCompletionProcess> processClass, Object[] constructorArgs, Class<?>[] paramterTypes) throws NoSuchMethodException, SecurityException;
|
35
|
|
36
|
void unRegisterProcessClass(Class<? extends BeforeTransactionCompletionProcess> processClass);
|
37
|
|
38
|
|
39
|
}
|