@ThreadSafe public class PModeManager extends com.helger.photon.app.dao.AbstractPhotonMapBasedWALDAO<IPMode,PMode> implements IPModeManager
PMode objects.| Constructor and Description |
|---|
PModeManager(String sFilename) |
| Modifier and Type | Method and Description |
|---|---|
void |
createPMode(PMode aPMode)
Create a new PMode.
|
com.helger.commons.state.EChange |
deletePMode(String sPModeID)
Delete the provided PMode.
|
IPMode |
getPModeOfID(String sID)
Find the PMode with the provided ID
|
com.helger.commons.state.EChange |
markPModeDeleted(String sPModeID)
Mark the provided PMode as deleted.
|
com.helger.commons.state.EChange |
updatePMode(IPMode aPMode)
Update an existing PMode.
|
isReloadable, reloadcallbacks, 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, toStringconvertNativeToWALString, 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, writeToFileOnPendingChangesbeginWithoutAutoSave, checkFileAccess, endWithoutAutoSave, exceptionHandlersRead, exceptionHandlersWrite, hasPendingChanges, internalHasPendingChanges, internalIsAutoSaveEnabled, internalSetPendingChanges, isAutoSaveEnabled, isDebugLogging, isSilentMode, setSilentModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateOrUpdatePMode, findFirst, getAll, getAllIDs, getPModeFilter, getPModeOfServiceAndAction, validateAllPModes, validatePModepublic void createPMode(@Nonnull PMode aPMode)
IPModeManagercreatePMode in interface IPModeManageraPMode - The PMode to be created. May not be null.@Nonnull public com.helger.commons.state.EChange updatePMode(@Nonnull IPMode aPMode)
IPModeManagerupdatePMode in interface IPModeManageraPMode - The PMode to be updated. May not be null.EChange.CHANGED if something changed,
EChange.UNCHANGED otherwise.@Nonnull public com.helger.commons.state.EChange markPModeDeleted(@Nullable String sPModeID)
IPModeManagermarkPModeDeleted in interface IPModeManagersPModeID - The ID of the PMode to be marked as deleted. May be
null.EChange@Nonnull public com.helger.commons.state.EChange deletePMode(@Nullable String sPModeID)
IPModeManagerdeletePMode in interface IPModeManagersPModeID - The ID of the PMode to be deleted. May be null.EChange@Nullable public IPMode getPModeOfID(@Nullable String sID)
IPModeManagergetPModeOfID in interface IPModeManagersID - The ID to search. May be null.null if no such PMode exists.Copyright © 2015–2020 Philip Helger. All rights reserved.