/** * Informs the manager that a batch operation has started. * <p> * <b>Note:</b> You must insure that if you call * <code>deferUpdates(true)</code> that nothing in your batched operation * will prevent the matching call to <code>deferUpdates(false)</code>. * </p> * * @param defer * true when starting a batch operation false when ending the * operation * * @since 3.5 */ public void deferUpdates(boolean defer) { if(defer) { cachingRef++; if (cachingRef==1) { setEventCaching(true); } }else { cachingRef--; if (cachingRef==0) { setEventCaching(false); } } }
/** * Informs the manager that a batch operation has started. * <p> * <b>Note:</b> You must insure that if you call * <code>deferUpdates(true)</code> that nothing in your batched operation * will prevent the matching call to <code>deferUpdates(false)</code>. * </p> * * @param defer * true when starting a batch operation false when ending the * operation * * @since 3.5 */ public void deferUpdates(boolean defer) { if(defer) { cachingRef++; if (cachingRef==1) { setEventCaching(true); } }else { cachingRef--; if (cachingRef==0) { setEventCaching(false); } } }
/** * Informs the manager that a batch operation has started. * <p> * <b>Note:</b> You must insure that if you call * <code>deferUpdates(true)</code> that nothing in your batched operation * will prevent the matching call to <code>deferUpdates(false)</code>. * </p> * * @param defer * true when starting a batch operation false when ending the * operation * * @since 3.5 */ public void deferUpdates(boolean defer) { if(defer) { cachingRef++; if (cachingRef==1) { setEventCaching(true); } }else { cachingRef--; if (cachingRef==0) { setEventCaching(false); } } }