@ThreadSafe public class MPCManager extends com.helger.photon.app.dao.AbstractPhotonMapBasedWALDAO<IMPC,MPC> implements IMPCManager
MPC objects.| Constructor and Description |
|---|
MPCManager(String sFilename) |
| Modifier and Type | Method and Description |
|---|---|
void |
createMPC(MPC aMPC)
Create a new MPC.
|
com.helger.commons.state.EChange |
deleteMPC(String sMPCID)
Delete the MPC with the provided ID.
|
IMPC |
getMPCOfID(String sID)
Get the MPC with the specified ID.
|
com.helger.commons.state.EChange |
markMPCDeleted(String sMPCID)
Mark the MPC with the provided ID as deleted.
|
protected com.helger.commons.state.EChange |
onInit() |
com.helger.commons.state.EChange |
updateMPC(IMPC aMPC)
Update an existing MPC
|
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, 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, waitcontainsWithID, getMPCOrDefaultOfID@Nonnull protected com.helger.commons.state.EChange onInit()
onInit in class com.helger.dao.wal.AbstractWALDAO<MPC>public void createMPC(@Nonnull MPC aMPC)
IMPCManagercreateMPC in interface IMPCManageraMPC - The MPC to be added. May not be null.@Nonnull public com.helger.commons.state.EChange updateMPC(@Nonnull IMPC aMPC)
IMPCManagerupdateMPC in interface IMPCManageraMPC - The MPC to be updated. May not be null.EChange.CHANGED if something changed,
EChange.UNCHANGED otherwise.@Nonnull public com.helger.commons.state.EChange markMPCDeleted(@Nullable String sMPCID)
IMPCManagermarkMPCDeleted in interface IMPCManagersMPCID - The ID of the MPC to be marked as deleted. May be null.EChange.CHANGED if marking as deleted succeeded,
EChange.UNCHANGED otherwise.@Nonnull public com.helger.commons.state.EChange deleteMPC(@Nullable String sMPCID)
IMPCManagerdeleteMPC in interface IMPCManagersMPCID - The ID of the MPC to be deleted. May be null.EChange.CHANGED if deleting succeeded,
EChange.UNCHANGED otherwise.@Nullable public IMPC getMPCOfID(@Nullable String sID)
IMPCManagergetMPCOfID in interface IMPCManagersID - The ID to search. May be null.null if no such MPC exists, the MPC otherwise.Copyright © 2015–2020 Philip Helger. All rights reserved.