org.hibernate.Interceptor.onSave()

Here are the examples of the java api org.hibernate.Interceptor.onSave() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

17 Source : InterceptorChain.java
with Apache License 2.0
from robinfriedli

@Override
public boolean onSave(Object enreplacedy, Serializable id, Object[] state, String[] propertyNames, Type[] types) {
    if (!INTERCEPTORS_MUTED.get()) {
        return first.onSave(enreplacedy, id, state, propertyNames, types);
    } else {
        return super.onSave(enreplacedy, id, state, propertyNames, types);
    }
}

17 Source : ChainableInterceptor.java
with Apache License 2.0
from robinfriedli

@Override
public boolean onSave(Object enreplacedy, Serializable id, Object[] state, String[] propertyNames, Type[] types) {
    try {
        onSaveChained(enreplacedy, id, state, propertyNames, types);
    } catch (Throwable e) {
        logger.error("Error in onSave of ChainableInterceptor " + getClreplaced().getSimpleName(), e);
    }
    return next.onSave(enreplacedy, id, state, propertyNames, types);
}