Example usage for org.hibernate Interceptor onDelete

List of usage examples for org.hibernate Interceptor onDelete

Introduction

In this page you can find the example usage for org.hibernate Interceptor onDelete.

Prototype

void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types)
        throws CallbackException;

Source Link

Document

Called before an object is deleted.

Usage

From source file:org.riotfamily.common.hibernate.ChainedInterceptor.java

License:Apache License

public void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) {

    for (Interceptor interceptor : interceptors) {
        interceptor.onDelete(entity, id, state, propertyNames, types);
    }/*from   ww w .  j av  a 2s . c  om*/
}

From source file:org.unitedinternet.cosmo.hibernate.CompoundInterceptor.java

License:Apache License

@Override
public void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) {
    for (Interceptor i : interceptors) {
        i.onDelete(entity, id, state, propertyNames, types);
    }//from  ww w.ja v  a 2 s .co m
}