Example usage for org.hibernate Interceptor onFlushDirty

List of usage examples for org.hibernate Interceptor onFlushDirty

Introduction

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

Prototype

boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState,
        String[] propertyNames, Type[] types) throws CallbackException;

Source Link

Document

Called when an object is detected to be dirty, during a flush.

Usage

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

License:Apache License

public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState,
        String[] propertyNames, Type[] types) {

    boolean result = false;
    for (Interceptor interceptor : interceptors) {
        result |= interceptor.onFlushDirty(entity, id, currentState, previousState, propertyNames, types);
    }//w w  w.j a  v a2 s.  c  o m
    return result;
}

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

License:Apache License

@Override
public boolean onFlushDirty(Object object, Serializable id, Object[] currentState, Object[] previousState,
        String[] propertyNames, Type[] types) {
    boolean modified = false;
    for (Interceptor i : interceptors) {
        modified = modified | i.onFlushDirty(object, id, currentState, previousState, propertyNames, types);
    }/*from w  w w .  jav  a  2 s .  co m*/
    return modified;
}

From source file:se.sperber.cryson.hibernate.CrysonInterceptor.java

License:Apache License

@Override
public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState,
        String[] propertyNames, Type[] types) {
    boolean result = false;
    for (Interceptor interceptor : interceptors) {
        result = interceptor.onFlushDirty(entity, id, currentState, previousState, propertyNames, types)
                || result;/*from www  . j av a 2  s . c  o m*/
    }
    return result;
}