public class WogenForecastSet extends NonPersistentMboSet implements WogenForecastSetRemote
Modifier and Type | Field and Description |
---|---|
protected java.util.Hashtable |
assetLocLookup
Relate asset to locations.
|
protected AssetServiceRemote |
assetServ
Caches a link to the Asset Service
|
protected int |
forecastSetCursor
This is the index of the next WogenForecast we will create.
|
protected java.util.Hashtable |
jpDurationLookup
Store durations for job plans
Key: jpnum, Value: Double duration
|
protected java.util.Hashtable |
jpEstLabHrsLookup
Store estimate labor hour totals for job plans
Key: jpnum, Value: Double estlabhrs
|
protected java.util.Hashtable |
locAssetLookup
Relate locations to asset.
|
protected boolean |
setIsComplete
This flag indicates when the forecast set has been completely generated.
|
protected java.util.Vector |
wfLookup
This vector allows us to find the position of forecast Mbos in this set, given
thier position in the related Wogen MboSet.
|
protected int |
wogenSetCursor
This is the index of the next wogen Mbo we need to create WogenForecast records for.
|
dmDeploySet, dmDeploySkipFieldValidation, fetchStopLimitEnabled, LOOKUPMAXROW, maxSorterSize, mboCountCleanuplist, mboVec, mrdVec, perfStats, strNoBaseLangValueEntered, toBeSaved
ASSET, LOCATIONS, WPLABOR, WPMATERIAL, WPTOOL
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 |
---|
WogenForecastSet(MboServerInterface ms)
Construct the set
|
Modifier and Type | Method and Description |
---|---|
protected void |
addJobTasks(java.lang.String jpnum,
java.lang.String orgid,
java.lang.String siteid,
MboRemote wogenBase,
WogenForecast parentMbo)
Creates task Mbos for Job Plans
|
protected java.lang.String |
calcGLAccount(Mbo param,
java.lang.String baseGL)
Calculate the GLAccount, given the asset & location of the Mbo and merge it
with the account on the wogen base.
|
int |
count()
The count method here is overridden because the framework's count doesn't
work for Nonpersistent MboSets.
|
void |
dispose()
Use this method when you no longer need the information from this set.
|
void |
execute()
In this particular nonpersistent MboSet, this method
does nothing.
|
protected java.lang.String |
getAssetForLoc(java.lang.String location)
Looks up and caches the asset that goes with the location.
|
protected int |
getAssetLocPriority(java.lang.String assetnum,
java.lang.String location)
Looks up the AssetLocPriority for asset and locations.
|
protected MboRemote |
getAssetMbo(java.lang.String assetnum)
Fetches the asset record, given an identifier.
|
protected double |
getEstDur(java.lang.String jpnum,
java.lang.String siteid,
java.lang.String orgid)
Looks up and caches job plan durations so that the EstDur attribute can be set.
|
protected double |
getEstLabHrs(java.lang.String jpnum,
java.lang.String siteid,
java.lang.String orgid)
Looks up and caches the total estimated labor hours for job plans so that the
EstLabHrs attribute can be set.
|
protected MboRemote |
getLocationMbo(java.lang.String location)
Fetches the location record, given an identifier.
|
protected java.lang.String |
getLocForAsset(java.lang.String assetnum)
Looks up and caches the location where the asset resides.
|
MboRemote |
getMbo(int index)
This method is overridden so we can create WogenForecast records based on the
Wogen records of the set that owns this set.
|
protected Mbo |
getMboInstance(MboSet ms)
Factory method to create an WogenForecast object.
|
MboRemote |
getMboTest(int index) |
protected int |
getWoNumber()
Called by WogenForecast.add()
|
execute, isClosed, setMboSetInfo, setup, toBeSaved
abortSql, add, add, addAliasForML, addAliasForML, addAtEnd, addAtEnd, addAtIndex, addAtIndex, addFakeAtEnd, addFederatedMboToSorter, addJoinedAttribute, addMbo, addMbo, addSubQbe, addSubQbe, addSubQbe, addSubQbe, addToEndOfSelectStatement, addWarning, addWarnings, appendToWhere, applyAppSpecificAuthorization, applyRowSecurity, avg, canAdd, cancelAndClose, checkMethodAccess, checkMethodAccess, cleanup, clear, clearBatchedPreparedStmt, clearBatchedPreparedStmts, clearESigTransactionIdThread, clearESigTransIDForAdmin, clearIgnoredAutokeyAttrs, clearLongOpPipe, clearToBeSaved, clearTransactionReference, clearWarnings, close, commit, commitTransaction, copy, copy, copy, copyForDM, count, countAndCleanup, countAndCleanup, deleteAll, deleteAll, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemoveAll, deleteAndRemoveAll, deleteMbo, determineRequiredFieldsFromERM, dump, earliestDate, enableMethod, executeBatch, fetchNext, findAllNullRequiredFields, findByIntegrationKey, findKey, fireEventsAfterDB, fireEventsAfterDBCommit, fireEventsBeforeDB, forceDBSort, getAllAppAlwaysFieldFlags, getAllowQualifiedRestriction, getAlwaysFlags, getAlwaysFlags, getApp, getAppAlwaysFieldFlags, getAppWhere, getAttrRestrictions, getBoolean, getByte, getBytes, getClientLocale, getClientTimeZone, getCompleteWhere, getCurrentPosition, getDate, getDBFetchMaxRows, getDefaultValue, getDefaultValueHash, getDouble, getERMEntity, getESigTransactionId, getExcludeMeFromPropagation, getFlags, getFloat, getFromClause, getIgnoredAutokeyAttrs, getInsertCompanySet, getInsertItemSet, getInsertOrg, getInsertSite, getInt, getJspDefaultValueHash, getKeyAttributes, getList, getList, getLong, getMaxAppsWhere, getMaxMessage, getMbo, getMboCtx, getMboForUniqueId, getMboLogger, getMboServer, getMboSetData, getMboSetData, getMboSetInfo, getMboSetRetainMboPositionData, getMboSetRetainMboPositionInfo, getMboSetValueData, getMboSetValueData, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMLFromClause, getMultiSiteWhere, getMXTransaction, getName, getOrderBy, getOwner, getParentApp, getPreparedStmt, getProfile, getProxy, getQbe, getQbe, getQbe, getQbeSiteAuthorization, getQbeWhere, getQualifiedWhere, getQueryTimeout, getRelationName, getRelationship, getRetainRecordLimit, getRowRestrictions, getSecurityLogger, getSelectClause, getSelectClause, getSelection, getSelectionWhere, getSelectWhereClause, getSetOrderByForUI, getSharedMboSet, getSize, getSkipFirstNRows, getSqlLogger, getSQLOptions, getString, getTranslator, getTxnPropertyMap, getUserAndQbeWhere, getUserInfo, getUserName, getUserPrefWhere, getUserWhere, getUserWhere, getWarnings, getWhere, getZombie, handleMLMbo, handleMLMbo, hasMLQbe, hasQbe, hasWarnings, ignoreAutokeyAttr, ignoreAutokeyAttr, ignoreQbeExactMatchSet, includeRelatedMbosOfOwnersChildren, incrementDeletedCount, init, init, initDataDictionary, insertDeltaRow, insertMbo, isBasedOn, isDeltaStorage, isDMDeploySet, isDMSkipFieldValidation, isDownloadSet, isEAuditFieldModified, isEAuditNeeded, isEmpty, isESigFieldModified, isESigNeeded, isESigNeeded, isFlagSet, isIgnoreQbeExactMatchSet, isInMemorySort, isJoinedAttribute, isLookup, isNull, isQbeCaseSensitive, isQbeExactMatch, isRetainMboPosition, isRetainRecordEnabled, isTableDomainLookup, latestDate, locateMbo, logESigVerification, logRowUpdatedException, max, min, moveFirst, moveLast, moveNext, movePrev, moveTo, moveToKey, newMboIndex, notExist, positionState, processML, remove, remove, remove, removeAllJoinedAttributes, removeCtx, removeJoinedAttribute, reset, resetForRefreshOnSave, resetQbe, resetWithSelection, rollback, rollbackToCheckpoint, rollbackToCheckpoint, rollbackTransaction, save, save, save, save, saveMbos, saveTransaction, select, select, select, selectAll, setAllowQualifiedRestriction, setApp, setAppAlwaysFieldFlag, setAppWhere, setAutoKeyFlag, setBindValueAsBytes, setDBFetchMaxRows, setDefaultOrderBy, setDefaultValue, setDefaultValue, setDefaultValues, setDefaultValues, setDiscardableFlag, setDMDeploySet, setDMSkipFieldValidation, setDownloadSet, setEAuditFieldModified, setERMEntity, setESigFieldModified, setExcludeMeFromPropagation, setFederatedResources, setFlag, setFlag, setFlags, setInsertCompanySet, setInsertItemSet, setInsertOrg, setInsertSite, setLastESigTransId, setLogLargFetchResultDisabled, setMboCtx, setMXTransaction, setNoNeedtoFetchFromDB, setNoSaveFlag, setOrderBy, setOrderByNVL, setOverrideSelectClause, setOverrideSelectFromClause, setOverrideSelectWhereClause, 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, undeleteAll, undoTransaction, unselect, unselect, unselect, unselectAll, updateMbo, updateMboSetRetainMboPositionData, updateRelatedMboSetRetainMboPositionData, useStoredQuery, validate, validateTransaction, verifyESig
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, setup
abortSql, add, add, addAtEnd, addAtEnd, addAtIndex, addAtIndex, addFakeAtEnd, addSubQbe, addSubQbe, addSubQbe, addSubQbe, addWarning, addWarnings, checkMethodAccess, cleanup, clear, clearLongOpPipe, close, commit, copy, copy, copyForDM, 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, 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, isDownloadSet, isEmpty, isESigNeeded, isFlagSet, isQbeCaseSensitive, isQbeExactMatch, isRetainMboPosition, latestDate, locateMbo, logESigVerification, max, min, moveFirst, moveLast, moveNext, movePrev, moveTo, newMboIndex, notExist, positionState, processML, remove, remove, remove, reset, resetQbe, resetWithSelection, rollback, rollbackToCheckpoint, rollbackToCheckpoint, save, save, select, select, select, selectAll, setAllowQualifiedRestriction, setApp, setAppAlwaysFieldFlag, setAppWhere, setAutoKeyFlag, setDBFetchMaxRows, setDefaultOrderBy, setDefaultValue, setDefaultValue, setDefaultValues, setDMDeploySet, setDMSkipFieldValidation, setDownloadSet, 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
protected int wogenSetCursor
protected int forecastSetCursor
protected boolean setIsComplete
protected java.util.Vector wfLookup
protected java.util.Hashtable assetLocLookup
protected java.util.Hashtable locAssetLookup
protected AssetServiceRemote assetServ
protected java.util.Hashtable jpDurationLookup
protected java.util.Hashtable jpEstLabHrsLookup
public WogenForecastSet(MboServerInterface ms) throws MXException, java.rmi.RemoteException
ms
- The MboServerInterfaceMXException
java.rmi.RemoteException
protected Mbo getMboInstance(MboSet ms) throws MXException, java.rmi.RemoteException
getMboInstance
in class MboSet
ms
- The WogenForecastSet.MXException
java.rmi.RemoteException
public void execute() throws MXException, java.rmi.RemoteException
execute
in interface NonPersistentMboSetRemote
execute
in class NonPersistentMboSet
MXException
java.rmi.RemoteException
To check that all required fields are have a value
before continuing execution, call this method. Generally implementations
of this method will call validate() as there first action.
public MboRemote getMbo(int index) throws MXException, java.rmi.RemoteException
getMbo
in interface MboSetRemote
getMbo
in class MboSet
MXException
java.rmi.RemoteException
MboSet.fetchMbos(int)
,
MboSet.loadMboVecFromMrd(int)
public MboRemote getMboTest(int index) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected int getWoNumber()
protected void addJobTasks(java.lang.String jpnum, java.lang.String orgid, java.lang.String siteid, MboRemote wogenBase, WogenForecast parentMbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected java.lang.String getLocForAsset(java.lang.String assetnum) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected java.lang.String getAssetForLoc(java.lang.String location) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
The method used to do the lookup.
protected double getEstDur(java.lang.String jpnum, java.lang.String siteid, java.lang.String orgid) throws MXException, java.rmi.RemoteException
jpnum
- The job plan.MXException
java.rmi.RemoteException
protected double getEstLabHrs(java.lang.String jpnum, java.lang.String siteid, java.lang.String orgid) throws MXException, java.rmi.RemoteException
jpnum
- The job plan.MXException
java.rmi.RemoteException
protected java.lang.String calcGLAccount(Mbo param, java.lang.String baseGL) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
protected MboRemote getAssetMbo(java.lang.String assetnum) throws MXException, java.rmi.RemoteException
assetnum
- The asset identifierMXException
java.rmi.RemoteException
MboSet.getSharedMboSet(java.lang.String, java.lang.String)
protected MboRemote getLocationMbo(java.lang.String location) throws MXException, java.rmi.RemoteException
location
- The location identifierMXException
java.rmi.RemoteException
MboSet.getSharedMboSet(java.lang.String, java.lang.String)
protected int getAssetLocPriority(java.lang.String assetnum, java.lang.String location) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void dispose() throws MXException, java.rmi.RemoteException
dispose
in interface WogenForecastSetRemote
MXException
java.rmi.RemoteException
public int count() throws MXException, java.rmi.RemoteException
count
in interface MboSetRemote
count
in class NonPersistentMboSet
MXException
java.rmi.RemoteException
MboSet.count(int)