@ThreadSafe public abstract class AbstractDAOContainer extends Object implements IDAOContainer
| Modifier and Type | Field and Description |
|---|---|
protected ReadWriteLock |
m_aRWLock |
| Constructor and Description |
|---|
AbstractDAOContainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginWithoutAutoSave()
Start doing something without auto save.
|
void |
endWithoutAutoSave()
End doing something without auto save.
|
boolean |
isAutoSaveEnabled() |
<RETURNTYPE> |
performWithoutAutoSave(com.helger.commons.callback.INonThrowingCallable<RETURNTYPE> aCallable)
This method is used for batch processing of instructions (like the initial
read).
|
void |
performWithoutAutoSave(com.helger.commons.callback.INonThrowingRunnable aRunnable)
This method is used for batch processing of instructions (like the initial
read).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllContainedDAOsprotected final ReadWriteLock m_aRWLock
@OverridingMethodsMustInvokeSuper public boolean isAutoSaveEnabled()
isAutoSaveEnabled in interface IAutoSaveAwaretrue if auto save is enabled, false
otherwise.public final void beginWithoutAutoSave()
IAutoSaveAwarebeginWithoutAutoSave in interface IAutoSaveAwarepublic final void endWithoutAutoSave()
IAutoSaveAwareIAutoSaveAware.beginWithoutAutoSave() is always correctly ended with a call to
this method.endWithoutAutoSave in interface IAutoSaveAwarepublic final void performWithoutAutoSave(@Nonnull com.helger.commons.callback.INonThrowingRunnable aRunnable)
IAutoSaveAwareperformWithoutAutoSave in interface IAutoSaveAwareaRunnable - The runnable to be executed. May not be null.@OverridingMethodsMustInvokeSuper @Nullable public <RETURNTYPE> RETURNTYPE performWithoutAutoSave(@Nonnull com.helger.commons.callback.INonThrowingCallable<RETURNTYPE> aCallable)
IAutoSaveAwareperformWithoutAutoSave in interface IAutoSaveAwareaCallable - The runnable to be executed. May not be null.Copyright © 2014–2015 Philip Helger. All rights reserved.