Here are the examples of the java api org.hibernate.Interceptor.onDelete() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
17
Source : InterceptorChain.java
with Apache License 2.0
from robinfriedli
with Apache License 2.0
from robinfriedli
@Override
public void onDelete(Object enreplacedy, Serializable id, Object[] state, String[] propertyNames, Type[] types) {
if (!INTERCEPTORS_MUTED.get()) {
first.onDelete(enreplacedy, id, state, propertyNames, types);
} else {
super.onDelete(enreplacedy, id, state, propertyNames, types);
}
}
17
Source : ChainableInterceptor.java
with Apache License 2.0
from robinfriedli
with Apache License 2.0
from robinfriedli
@Override
public void onDelete(Object enreplacedy, Serializable id, Object[] state, String[] propertyNames, Type[] types) {
try {
onDeleteChained(enreplacedy, id, state, propertyNames, types);
} catch (Throwable e) {
logger.error("Error in onDelete of ChainableInterceptor " + getClreplaced().getSimpleName(), e);
}
next.onDelete(enreplacedy, id, state, propertyNames, types);
}
16
Source : ChainingInterceptor.java
with Apache License 2.0
from isstac
with Apache License 2.0
from isstac
@Override
public void onDelete(Object enreplacedy, Serializable id, Object[] state, String[] propertyNames, Type[] types) {
for (Interceptor i : interceptors) {
i.onDelete(enreplacedy, id, state, propertyNames, types);
}
}