Project

General

Profile

Download (1.58 KB) Statistics
| Branch: | Tag: | Revision:
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.event.spi.PreDeleteEvent;
17
import org.hibernate.event.spi.PreDeleteEventListener;
18
import org.hibernate.persister.entity.EntityPersister;
19

    
20
/**
21
 * Interface for {@link TaxonGraphHibernateListener}.
22
 * Please refer to that class for more information.
23
 *
24
 * @author a.kohlbecker
25
 * @since Oct 10, 2018
26
 *
27
 */
28
public interface ITaxonGraphHibernateListener extends PostInsertEventListener, PostUpdateEventListener, PreDeleteEventListener {
29

    
30
    @Override
31
    boolean requiresPostCommitHanding(EntityPersister persister);
32

    
33
    @Override
34
    void onPostInsert(PostInsertEvent event);
35

    
36
    @Override
37
    void onPostUpdate(PostUpdateEvent event);
38

    
39
    @Override
40
    public boolean onPreDelete(PreDeleteEvent event);
41

    
42
    void registerProcessClass(Class<? extends BeforeTransactionCompletionProcess> processClass, Object[] constructorArgs, Class<?>[] paramterTypes) throws NoSuchMethodException, SecurityException;
43

    
44
    void unRegisterProcessClass(Class<? extends BeforeTransactionCompletionProcess> processClass);
45

    
46

    
47
}
(13-13/23)