Package com.helger.dao.container
Class AbstractDAOContainer
java.lang.Object
com.helger.dao.container.AbstractDAOContainer
- All Implemented Interfaces:
IDAOContainer,IAutoSaveAware
- Direct Known Subclasses:
DefaultDAOContainer
Abstract base implementation of
IDAOContainer.- Author:
- Philip Helger
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.helger.commons.concurrent.SimpleReadWriteLock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidStart doing something without auto save.final voidEnd doing something without auto save.booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.helger.dao.IAutoSaveAware
performWithoutAutoSave, performWithoutAutoSave, performWithoutAutoSaveThrowing, performWithoutAutoSaveThrowingMethods inherited from interface com.helger.dao.container.IDAOContainer
containsAny, getAllContainedDAOs
-
Field Details
-
m_aRWLock
protected final com.helger.commons.concurrent.SimpleReadWriteLock m_aRWLock
-
-
Constructor Details
-
AbstractDAOContainer
public AbstractDAOContainer()
-
-
Method Details
-
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
-