Package com.helger.phase4.model.pmode
Class PModeManagerXML
- All Implemented Interfaces:
com.helger.commons.lang.IHasSize,com.helger.commons.log.IHasConditionalLogger,com.helger.dao.IAutoSaveAware,com.helger.dao.IDAO,com.helger.dao.wal.IMapBasedDAO<IPMode>,IPModeManager
@ThreadSafe
public class PModeManagerXML
extends com.helger.photon.io.dao.AbstractPhotonMapBasedWALDAO<IPMode,PMode>
implements IPModeManager
Persisting manager for
PMode objects.- Author:
- Philip Helger
-
Nested Class Summary
Nested classes/interfaces inherited from class com.helger.dao.wal.AbstractMapBasedWALDAO
com.helger.dao.wal.AbstractMapBasedWALDAO.InitSettings<IMPLTYPE>Nested classes/interfaces inherited from interface com.helger.dao.IDAO
com.helger.dao.IDAO.EMode -
Field Summary
Fields inherited from class com.helger.dao.wal.AbstractMapBasedWALDAO
ELEMENT_ITEM, ELEMENT_ROOTFields inherited from class com.helger.dao.wal.AbstractWALDAO
DEFAULT_WAITING_TIME, WAL_XWS, WRITE_XWSFields inherited from class com.helger.dao.AbstractDAO
CONDLOG, DEFAULT_AUTO_SAVE_ENABLED, FILENAME_EXTENSION_NEW, FILENAME_EXTENSION_PREV, m_aRWLock, RW_LOCK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateOrUpdatePMode(PMode aPMode) Create or update the provided PMode.voidcreatePMode(PMode aPMode) Create a new PMode.com.helger.commons.state.EChangedeletePMode(String sPModeID) Delete the provided PMode.getPModeOfID(String sID) Find the PMode with the provided IDcom.helger.commons.state.EChangemarkPModeDeleted(String sPModeID) Mark the provided PMode as deleted.com.helger.commons.state.EChangeupdatePMode(IPMode aPMode) Update an existing PMode.Methods inherited from class com.helger.photon.io.dao.AbstractPhotonMapBasedWALDAO
isReloadable, reloadMethods inherited from class com.helger.dao.wal.AbstractMapBasedWALDAO
callbacks, containsAllIDs, containsAny, containsNone, containsOnly, containsWithID, createWriteData, findAll, findAllMapped, findFirst, findFirstMapped, forEach, forEach, forEachKey, forEachKey, forEachValue, forEachValue, getAll, getAll, getAllIDs, getAllMapped, getAtIndex, getCount, getNone, getOfID, internalContainsWithID, internalCreateItem, internalCreateItem, internalDeleteItem, internalDeleteItem, internalDirectGetAll, internalForEachValue, internalForEachValue, internalGetAll, internalGetAllSortedByKey, internalGetOfID, internalMarkItemDeleted, internalMarkItemDeleted, internalMarkItemUndeleted, internalMarkItemUndeleted, internalRemoveAllItemsNoCallback, internalUpdateItem, internalUpdateItem, isEmpty, isNotEmpty, markAsChanged, onRead, onRecoveryCreate, onRecoveryDelete, onRecoveryUpdate, size, toStringMethods inherited from class com.helger.dao.wal.AbstractWALDAO
convertNativeToWALString, convertWALStringToNative, getDataTypeClass, getFilenameProvider, getInitCount, getIO, getLastFilename, getLastInitDateTime, getLastReadDateTime, getLastWriteDateTime, getReadCount, getSafeFile, getWaitingTime, getWALXMLWriterSettings, getWriteCount, getXMLWriterSettings, initialRead, markAsChanged, modifyWriteData, onBetweenReadAndWAL, onFilenameChange, onInit, onRecoveryErrorConvertToNative, setWaitingTime, triggerExceptionHandlersRead, triggerExceptionHandlersWrite, writeToFileOnPendingChangesMethods inherited from class com.helger.dao.AbstractDAO
beginWithoutAutoSave, checkFileAccess, endWithoutAutoSave, exceptionHandlersRead, exceptionHandlersWrite, hasPendingChanges, internalHasPendingChanges, internalIsAutoSaveEnabled, internalSetPendingChanges, isAutoSaveEnabled, isSilentMode, setSilentModeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.dao.IAutoSaveAware
performWithoutAutoSave, performWithoutAutoSave, performWithoutAutoSaveThrowing, performWithoutAutoSaveThrowingMethods inherited from interface com.helger.phase4.model.pmode.IPModeManager
findFirst, getAll, getAllIDs, getPModeOfServiceAndAction, validateAllPModes, validatePMode
-
Constructor Details
-
PModeManagerXML
- Throws:
com.helger.dao.DAOException
-
-
Method Details
-
createPMode
Description copied from interface:IPModeManagerCreate a new PMode.- Specified by:
createPModein interfaceIPModeManager- Parameters:
aPMode- The PMode to be created. May not benull.
-
updatePMode
Description copied from interface:IPModeManagerUpdate an existing PMode.- Specified by:
updatePModein interfaceIPModeManager- Parameters:
aPMode- The PMode to be updated. May not benull.- Returns:
EChange.CHANGEDif something changed,EChange.UNCHANGEDotherwise.
-
createOrUpdatePMode
Description copied from interface:IPModeManagerCreate or update the provided PMode.- Specified by:
createOrUpdatePModein interfaceIPModeManager- Parameters:
aPMode- The PMode to be created or updated.
-
markPModeDeleted
Description copied from interface:IPModeManagerMark the provided PMode as deleted.- Specified by:
markPModeDeletedin interfaceIPModeManager- Parameters:
sPModeID- The ID of the PMode to be marked as deleted. May benull.- Returns:
EChange
-
deletePMode
Description copied from interface:IPModeManagerDelete the provided PMode.- Specified by:
deletePModein interfaceIPModeManager- Parameters:
sPModeID- The ID of the PMode to be deleted. May benull.- Returns:
EChange
-
getPModeOfID
Description copied from interface:IPModeManagerFind the PMode with the provided ID- Specified by:
getPModeOfIDin interfaceIPModeManager- Parameters:
sID- The ID to search. May benull.- Returns:
nullif no such PMode exists.
-