Package com.helger.dao.container
Class AbstractDAOContainer
- java.lang.Object
-
- com.helger.dao.container.AbstractDAOContainer
-
- All Implemented Interfaces:
IDAOContainer,IAutoSaveAware
- Direct Known Subclasses:
DefaultDAOContainer
@ThreadSafe public abstract class AbstractDAOContainer extends Object implements IDAOContainer
Abstract base implementation ofIDAOContainer.- Author:
- Philip Helger
-
-
Field Summary
Fields Modifier and Type Field Description protected com.helger.commons.concurrent.SimpleReadWriteLockm_aRWLock
-
Constructor Summary
Constructors Constructor Description AbstractDAOContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginWithoutAutoSave()Start doing something without auto save.voidendWithoutAutoSave()End doing something without auto save.booleanisAutoSaveEnabled()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.helger.dao.IAutoSaveAware
performWithoutAutoSave, performWithoutAutoSave, performWithoutAutoSaveThrowing, performWithoutAutoSaveThrowing
-
Methods inherited from interface com.helger.dao.container.IDAOContainer
containsAny, getAllContainedDAOs
-
-
-
-
Method Detail
-
isAutoSaveEnabled
@OverridingMethodsMustInvokeSuper public boolean isAutoSaveEnabled()
- Specified by:
isAutoSaveEnabledin interfaceIAutoSaveAware- Returns:
trueif auto save is enabled,falseotherwise.
-
beginWithoutAutoSave
public final void beginWithoutAutoSave()
Description copied from interface:IAutoSaveAwareStart doing something without auto save.- Specified by:
beginWithoutAutoSavein interfaceIAutoSaveAware
-
endWithoutAutoSave
public final void endWithoutAutoSave()
Description copied from interface:IAutoSaveAwareEnd doing something without auto save. It must be ensure that each call toIAutoSaveAware.beginWithoutAutoSave()is always correctly ended with a call to this method.- Specified by:
endWithoutAutoSavein interfaceIAutoSaveAware
-
-