@ThreadSafe public abstract class AbstractDAOContainer extends Object implements IDAOContainer
IDAOContainer.| Modifier and Type | Field and Description |
|---|---|
protected com.helger.commons.concurrent.SimpleReadWriteLock |
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() |
void |
performWithoutAutoSave(Runnable aRunnable)
This method is used for batch processing of instructions (like the initial
read).
|
<RETURNTYPE> |
performWithoutAutoSave(Supplier<RETURNTYPE> aCallable)
This method is used for batch processing of instructions (like the initial
read).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsAny, getAllContainedDAOs@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 IAutoSaveAware@OverridingMethodsMustInvokeSuper public void performWithoutAutoSave(@Nonnull Runnable aRunnable)
IAutoSaveAwareperformWithoutAutoSave in interface IAutoSaveAwareaRunnable - The runnable to be executed. May not be null.@OverridingMethodsMustInvokeSuper @Nullable public <RETURNTYPE> RETURNTYPE performWithoutAutoSave(@Nonnull Supplier<RETURNTYPE> aCallable)
IAutoSaveAwareperformWithoutAutoSave in interface IAutoSaveAwareRETURNTYPE - Return type of the callableaCallable - The runnable to be executed. May not be null.Copyright © 2014–2017 Philip Helger. All rights reserved.