List of usage examples for org.hibernate Interceptor postFlush
void postFlush(Iterator entities) throws CallbackException;
From source file:com.fiveamsolutions.nci.commons.util.CompositeInterceptor.java
License:Open Source License
/** * {@inheritDoc}/*from w w w . jav a 2 s. c o m*/ */ @SuppressWarnings("rawtypes") public void postFlush(Iterator arg0) { for (Interceptor i : children) { i.postFlush(arg0); } }
From source file:com.fiveamsolutions.nci.commons.util.CompositeInterceptorTest.java
License:Open Source License
private void helper(Interceptor i, boolean expectChanges) { i.afterTransactionBegin(null);//from www .j a v a 2 s .com i.afterTransactionCompletion(null); i.beforeTransactionCompletion(null); assertNull(i.getEntity(null, null)); assertNull(i.getEntityName(null)); if (expectChanges) { assertNotNull(i.findDirty(null, null, null, null, null, null)); assertNotNull(i.instantiate(null, null, null)); assertNotNull(i.isTransient(null)); assertTrue(!"foo".equals(i.onPrepareStatement("foo"))); } else { assertNull(i.findDirty(null, null, null, null, null, null)); assertNull(i.instantiate(null, null, null)); assertNull(i.isTransient(null)); assertEquals("foo", i.onPrepareStatement("foo")); } i.onCollectionRecreate(null, null); i.onCollectionRemove(null, null); i.onCollectionUpdate(null, null); i.onDelete(null, null, null, null, null); assertEquals(expectChanges, i.onFlushDirty(null, null, null, null, null, null)); assertEquals(expectChanges, i.onLoad(null, null, null, null, null)); assertEquals(expectChanges, i.onSave(null, null, null, null, null)); i.postFlush(null); i.preFlush(null); }
From source file:debop4k.data.orm.hibernate.interceptors.MultipleInterceptor.java
License:Apache License
@Override public void postFlush(Iterator entities) { if (nonEmpty()) { for (Interceptor interceptor : interceptors) { interceptor.postFlush(entities); }// w w w .j a v a 2 s . co m } }
From source file:gov.nih.nci.cabig.ctms.audit.ChainedInterceptor.java
License:BSD License
public void postFlush(Iterator entities) throws CallbackException { for (Interceptor element : interceptors) { element.postFlush(entities); }//from w w w . jav a 2 s. com }
From source file:kr.debop4j.data.hibernate.interceptor.MultiInterceptor.java
License:Apache License
@Override public void postFlush(Iterator entities) { if (!isExists()) return;/*w w w .j av a 2s . c om*/ if (isTraceEnabled) log.trace("?? postFlush ? ."); // List<FutureTask<Void>> tasks = Lists.newLinkedList(); for (final Interceptor interceptor : interceptors) { interceptor.postFlush(entities); } }
From source file:org.chenillekit.hibernate.interceptors.ChainedInterceptor.java
License:Apache License
public void postFlush(Iterator entities) { for (Object o : interceptors.entrySet()) { Map.Entry entry = (Map.Entry) o; Interceptor interceptor = (Interceptor) entry.getValue(); interceptor.postFlush(entities); }/*from w w w. j av a2 s. co m*/ }
From source file:org.hyperic.hibernate.DefaultInterceptorChain.java
License:Open Source License
public void postFlush(HibernateInterceptorChain chain, Interceptor target, Iterator entities) { target.postFlush(entities); }
From source file:org.openmrs.api.db.hibernate.ChainingInterceptor.java
License:Mozilla Public License
@SuppressWarnings("unchecked") public void postFlush(Iterator entities) { for (Interceptor i : interceptors) { i.postFlush(entities); }/*from www .j a v a 2 s. c o m*/ }
From source file:org.riotfamily.common.hibernate.ChainedInterceptor.java
License:Apache License
@SuppressWarnings("unchecked") public void postFlush(Iterator entities) { for (Interceptor interceptor : interceptors) { interceptor.postFlush(entities); }//ww w. ja v a2 s . co m }