List of usage examples for org.hibernate Interceptor onSave
boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) throws CallbackException;
From source file:org.riotfamily.common.hibernate.ChainedInterceptor.java
License:Apache License
public boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) throws CallbackException { boolean result = false; for (Interceptor interceptor : interceptors) { result |= interceptor.onSave(entity, id, state, propertyNames, types); }/* ww w. j av a 2 s . c o m*/ return result; }
From source file:org.unitedinternet.cosmo.hibernate.CompoundInterceptor.java
License:Apache License
@Override public boolean onSave(Object object, Serializable id, Object[] state, String[] propertyNames, Type[] types) { boolean modified = false; for (Interceptor i : interceptors) { modified = modified | i.onSave(object, id, state, propertyNames, types); }//from w ww. j ava 2s .c o m return modified; }
From source file:se.sperber.cryson.hibernate.CrysonInterceptor.java
License:Apache License
@Override public boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) { boolean result = false; for (Interceptor interceptor : interceptors) { result = interceptor.onSave(entity, id, state, propertyNames, types) || result; }/*from ww w . jav a 2 s. c o m*/ return result; }