public class PMSet extends MboSet implements PMSetRemote, MboSetRemote
fetchStopLimitEnabled, LOOKUPMAXROW, maxSorterSize, mboCountCleanuplist, perfStats, strNoBaseLangValueEntered
ACTIVEASSET, ACTIVELOC, ANCESTORS, ASSET, ASSOCASSET, ASSOCLOC, ASSOCPMFORASSET, ASSOCPMFORLOC, CHILDREN, DESCENDANTS, DOCLINKS, HIERARCHY, ITEM, JOBPLAN, LOCATIONS, MASTERPM, MEASUREPOINT, ORGLOCATION, PARENT, PMANCESTOR, PMMETER, PMSEASONS, PMSEQUENCE, PMSTATUSDUMMY, PMWORKGENERATION, PRIMARYSYSLOCPM, ROUTES, SITELOCATION, WORKORDER
INSERTONLY, INSERTORUPDATE, UPDATEONLY
ALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix
Constructor and Description |
---|
PMSet(MboServerInterface ms)
Construct the set
|
Modifier and Type | Method and Description |
---|---|
void |
canAdd()
Determines whether PM's can be added to this Set or not.
|
void |
canGenerateWork()
Determines whether work orders can be generated or not.
|
boolean |
checkWFEnabled()
This method checks whether to start the workflow process after the generation of workorder
from PM depending on the maxvar 'WFONPMGENERATION'.
|
void |
deleteForecast() |
void |
filterByLinearAsset(MboSetRemote fltrSet)
This method filters PM records by Linear asset.
|
void |
generateForecast(int genDuration)
Generates forecast for every PM in the set.
|
void |
generateWork(boolean useFreqCrit,
int leadTime)
Method that generates work orders for every PM in the set.
|
void |
generateWork(boolean useFreqCrit,
int leadTime,
boolean isCalledFromCrontask)
Method that generates work orders for every PM in the set.
|
void |
generateWorkPMAlerts()
This method is called by the PMAlertBean to generate Work Orders
on the selected PMs from the PMAlert Dialog.
|
java.util.Hashtable |
getOriginalPMQbe() |
java.lang.String |
getOriginalPMUserWhere() |
void |
init()
Set AutoKeyFlag off if child PM is creating a record.
|
void |
lockUnlockForecast(boolean lockForecast) |
void |
onlyTopLevels()
Takes the current where clause of the set and limits it further
to PM's which aren't sub-work orders.
|
void |
reset()
reset method is overriden to set back the flags related to WorkFlow to the default
values.
|
void |
resetMeterReadings()
This method resets all the meterreadings of the PM based on the asset number.
|
void |
setOriginalPMQbe(java.util.Hashtable inQbe) |
void |
setOriginalPMUserWhere(java.lang.String inWhere) |
abortSql, add, add, addAtEnd, addAtEnd, addAtIndex, addAtIndex, addFakeAtEnd, addSubQbe, addSubQbe, addSubQbe, addSubQbe, addToEndOfSelectStatement, addWarning, addWarnings, appendToWhere, applyRowSecurity, cancelAndClose, checkMethodAccess, checkMethodAccess, cleanup, clear, clearESigTransIDForAdmin, clearIgnoredAutokeyAttrs, clearLongOpPipe, clearToBeSaved, clearTransactionReference, clearWarnings, close, commit, commitTransaction, copy, copy, copy, copyForDM, count, count, deleteAll, deleteAll, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemoveAll, deleteAndRemoveAll, determineRequiredFieldsFromERM, dump, earliestDate, enableMethod, fetchNext, findAllNullRequiredFields, findByIntegrationKey, findKey, fireEventsAfterDB, fireEventsAfterDBCommit, fireEventsBeforeDB, getAllowQualifiedRestriction, getAlwaysFlags, getAlwaysFlags, getApp, getAppAlwaysFieldFlags, getAppWhere, getAttrRestrictions, getBoolean, getByte, getBytes, getClientLocale, getClientTimeZone, getCompleteWhere, getCurrentPosition, getDate, getDBFetchMaxRows, getDefaultValue, getDefaultValueHash, getDouble, getERMEntity, getESigTransactionId, getExcludeMeFromPropagation, getFlags, getFloat, getIgnoredAutokeyAttrs, getInsertCompanySet, getInsertItemSet, getInsertOrg, getInsertSite, getInt, getJspDefaultValueHash, getKeyAttributes, getList, getList, getLong, getMaxAppsWhere, getMaxMessage, getMbo, getMbo, getMboForUniqueId, getMboLogger, getMboSetData, getMboSetData, getMboSetInfo, getMboSetRetainMboPositionData, getMboSetRetainMboPositionInfo, getMboSetValueData, getMboSetValueData, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMLFromClause, getMultiSiteWhere, getMXTransaction, getName, getOrderBy, getOwner, getParentApp, getProfile, getProxy, getQbe, getQbe, getQbe, getQbeSiteAuthorization, getQbeWhere, getQualifiedWhere, getQueryTimeout, getRelationName, getRelationship, getRowRestrictions, getSecurityLogger, getSelection, getSelectionWhere, getSetOrderByForUI, getSharedMboSet, getSize, getSkipFirstNRows, getSqlLogger, getSQLOptions, getString, getTxnPropertyMap, getUserAndQbeWhere, getUserInfo, getUserName, getUserPrefWhere, getUserWhere, getUserWhere, getWarnings, getWhere, getZombie, handleMLMbo, handleMLMbo, hasMLQbe, hasQbe, hasWarnings, ignoreAutokeyAttr, ignoreAutokeyAttr, ignoreQbeExactMatchSet, incrementDeletedCount, init, initDataDictionary, isBasedOn, isClosed, isDeltaStorage, isDMDeploySet, isDMSkipFieldValidation, isEAuditFieldModified, isEmpty, isESigFieldModified, isESigNeeded, isFlagSet, isIgnoreQbeExactMatchSet, isLookup, isNull, isQbeCaseSensitive, isQbeExactMatch, isRetainMboPosition, isTableDomainLookup, latestDate, locateMbo, logESigVerification, logRowUpdatedException, max, min, moveFirst, moveLast, moveNext, movePrev, moveTo, moveToKey, notExist, positionState, processML, remove, remove, remove, resetForRefreshOnSave, resetQbe, resetWithSelection, rollback, rollbackToCheckpoint, rollbackToCheckpoint, rollbackTransaction, save, save, save, save, saveMbos, saveTransaction, select, select, select, selectAll, setAllowQualifiedRestriction, setApp, setAppAlwaysFieldFlag, setAppWhere, setAutoKeyFlag, setDBFetchMaxRows, setDefaultOrderBy, setDefaultValue, setDefaultValue, setDefaultValues, setDefaultValues, setDMDeploySet, setDMSkipFieldValidation, setEAuditFieldModified, setERMEntity, setESigFieldModified, setExcludeMeFromPropagation, setFlag, setFlag, setFlags, setInsertCompanySet, setInsertItemSet, setInsertOrg, setInsertSite, setLastESigTransId, setLogLargFetchResultDisabled, setMboSetInfo, setMXTransaction, setNoNeedtoFetchFromDB, setOrderBy, setOwner, setPreserveOrderByCase, setProxy, setQbe, setQbe, setQbe, setQbe, setQbe, setQbeCaseSensitive, setQbeCaseSensitive, setQbeExactMatch, setQbeExactMatch, setQbeOperatorOr, setQueryBySiteQbe, setQueryTimeout, setRelationName, setRelationship, setRequiedFlagsFromERM, setRetainMboPosition, setSetOrderByForUI, setSkipFirstNRows, setSQLOptions, setTableDomainLookup, setTxnPropertyMap, setupLongOpPipe, setUserWhere, setUserWhereAfterParse, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, setWhere, setWhereQbe, smartFill, smartFill, smartFind, smartFind, smartFind, smartFind, sort, splitOrderBy, startCheckpoint, startCheckpoint, sum, toBeSaved, undeleteAll, undoTransaction, unselect, unselect, unselect, unselectAll, useStoredQuery, validate, validateTransaction, verifyESig
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
abortSql, add, add, addAtEnd, addAtEnd, addAtIndex, addAtIndex, addFakeAtEnd, addSubQbe, addSubQbe, addSubQbe, addSubQbe, addWarning, addWarnings, checkMethodAccess, cleanup, clear, clearLongOpPipe, close, commit, copy, copy, copyForDM, count, count, deleteAll, deleteAll, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemoveAll, deleteAndRemoveAll, determineRequiredFieldsFromERM, earliestDate, fetchNext, findAllNullRequiredFields, findByIntegrationKey, findKey, getApp, getAppAlwaysFieldFlags, getAppWhere, getCompleteWhere, getCurrentPosition, getDBFetchMaxRows, getDefaultValue, getERMEntity, getESigTransactionId, getExcludeMeFromPropagation, getFlags, getKeyAttributes, getList, getList, getMaxMessage, getMbo, getMbo, getMboForUniqueId, getMboSetData, getMboSetData, getMboSetInfo, getMboSetRetainMboPositionData, getMboSetRetainMboPositionInfo, getMboSetValueData, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMLFromClause, getMXTransaction, getName, getOrderBy, getOwner, getParentApp, getProfile, getQbe, getQbe, getQbe, getQbeWhere, getQueryTimeout, getRelationName, getRelationship, getSelection, getSelectionWhere, getSetOrderByForUI, getSize, getSQLOptions, getTxnPropertyMap, getUserAndQbeWhere, getUserInfo, getUserName, getUserWhere, getWarnings, getWhere, getZombie, hasMLQbe, hasQbe, hasWarnings, ignoreQbeExactMatchSet, incrementDeletedCount, init, isBasedOn, isDMDeploySet, isDMSkipFieldValidation, isEmpty, isESigNeeded, isFlagSet, isQbeCaseSensitive, isQbeExactMatch, isRetainMboPosition, latestDate, locateMbo, logESigVerification, max, min, moveFirst, moveLast, moveNext, movePrev, moveTo, notExist, positionState, processML, remove, remove, remove, resetQbe, resetWithSelection, rollback, rollbackToCheckpoint, rollbackToCheckpoint, save, save, select, select, select, selectAll, setAllowQualifiedRestriction, setApp, setAppAlwaysFieldFlag, setAppWhere, setAutoKeyFlag, setDBFetchMaxRows, setDefaultOrderBy, setDefaultValue, setDefaultValue, setDefaultValues, setDMDeploySet, setDMSkipFieldValidation, setERMEntity, setESigFieldModified, setExcludeMeFromPropagation, setFlag, setFlag, setFlags, setInsertCompanySet, setInsertItemSet, setInsertOrg, setInsertSite, setLastESigTransId, setLogLargFetchResultDisabled, setMboSetInfo, setMXTransaction, setNoNeedtoFetchFromDB, setOrderBy, setOwner, setQbe, setQbe, setQbe, setQbe, setQbe, setQbeCaseSensitive, setQbeCaseSensitive, setQbeExactMatch, setQbeExactMatch, setQbeOperatorOr, setQueryBySiteQbe, setQueryTimeout, setRelationName, setRelationship, setRequiedFlagsFromERM, setRetainMboPosition, setSetOrderByForUI, setSQLOptions, setTableDomainLookup, setTxnPropertyMap, setupLongOpPipe, setUserWhere, setUserWhereAfterParse, setWhere, setWhereQbe, smartFill, smartFill, smartFind, smartFind, startCheckpoint, startCheckpoint, sum, toBeSaved, undeleteAll, unselect, unselect, unselect, unselectAll, useStoredQuery, validate, verifyESig
getBoolean, getByte, getBytes, getDate, getDouble, getFloat, getInt, getLong, getString, isNull, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull
commitTransaction, fireEventsAfterDB, fireEventsAfterDBCommit, fireEventsBeforeDB, rollbackTransaction, saveTransaction, undoTransaction, validateTransaction
public PMSet(MboServerInterface ms) throws MXException, java.rmi.RemoteException
ms
- The Mbo Server interfaceMXException
java.rmi.RemoteException
public void init() throws MXException, java.rmi.RemoteException
init
in class MboSet
MXException
java.rmi.RemoteException
MboSet.setOwner(MboRemote)
public void canGenerateWork() throws java.rmi.RemoteException, MXException
canGenerateWork
in interface PMSetRemote
MXException
- If there are unsaved modifications to the PM,
then MXApplicationException("PM","SetUnsavedNoGen")java.rmi.RemoteException
canGenerateWork()
public void generateWork(boolean useFreqCrit, int leadTime) throws MXException, java.rmi.RemoteException
generateWork
in interface PMSetRemote
userFreqCrit
- Flag whether to use frequency criteria or not to figure out when to
generate work orders.leadTime
- The number of days ahead to generate work orders for.MXException
java.rmi.RemoteException
PM.generateWork(boolean, int, boolean)
public void generateWork(boolean useFreqCrit, int leadTime, boolean isCalledFromCrontask) throws MXException, java.rmi.RemoteException
generateWork
in interface PMSetRemote
userFreqCrit
- Flag whether to use frequency criteria or not to figure out when to
generate work orders.leadTime
- The number of days ahead to generate work orders for.isCalledFromCrontask
- If this method is called from a CronTaskMXException
java.rmi.RemoteException
PM.generateWork(boolean, int, boolean)
public void resetMeterReadings() throws MXException, java.rmi.RemoteException
resetMeterReadings
in interface PMSetRemote
MXException
java.rmi.RemoteException
resetMeterReadings()
public void onlyTopLevels() throws MXException, java.rmi.RemoteException
onlyTopLevels
in interface PMSetRemote
MXException
java.rmi.RemoteException
PMSetRemote.onlyTopLevels()
public void canAdd() throws MXException
canAdd
in class MboSet
MXException
public boolean checkWFEnabled() throws MXException, java.rmi.RemoteException
MXException
- If workflow process is not enabled, then MXApplicationException("MASTERPM", "WFMessage");java.rmi.RemoteException
public void reset() throws MXException, java.rmi.RemoteException
reset
in interface MboSetRemote
reset
in class MboSet
MXException
java.rmi.RemoteException
MboSet.save()
public void generateWorkPMAlerts() throws MXException, java.rmi.RemoteException
generateWorkPMAlerts
in interface PMSetRemote
MXException
java.rmi.RemoteException
generateWorkPMAlerts()
public void filterByLinearAsset(MboSetRemote fltrSet) throws MXException, java.rmi.RemoteException
filterByLinearAsset
in interface PMSetRemote
MXException
java.rmi.RemoteException
public java.util.Hashtable getOriginalPMQbe() throws MXException, java.rmi.RemoteException
getOriginalPMQbe
in interface PMSetRemote
MXException
java.rmi.RemoteException
public java.lang.String getOriginalPMUserWhere() throws MXException, java.rmi.RemoteException
getOriginalPMUserWhere
in interface PMSetRemote
MXException
java.rmi.RemoteException
public void setOriginalPMUserWhere(java.lang.String inWhere) throws MXException, java.rmi.RemoteException
setOriginalPMUserWhere
in interface PMSetRemote
MXException
java.rmi.RemoteException
public void setOriginalPMQbe(java.util.Hashtable inQbe) throws MXException, java.rmi.RemoteException
setOriginalPMQbe
in interface PMSetRemote
MXException
java.rmi.RemoteException
public void generateForecast(int genDuration) throws MXException, java.rmi.RemoteException
generateForecast
in interface PMSetRemote
genDuration
- The number of days ahead to generate forecast for.MXException
java.rmi.RemoteException
psdi.skd.app.pm.SKDPMSet#generateForecast()
public void deleteForecast() throws MXException, java.rmi.RemoteException
deleteForecast
in interface PMSetRemote
MXException
java.rmi.RemoteException
psdi.skd.app.pm.SKDPMSet#deleteForecast()
public void lockUnlockForecast(boolean lockForecast) throws MXException, java.rmi.RemoteException
lockUnlockForecast
in interface PMSetRemote
MXException
java.rmi.RemoteException
psdi.skd.app.pm.SKDPMSet#lockUnlockForecast(boolean lockForecast)