public class ReorderSet extends MboSet implements ReorderSetRemote
| Modifier and Type | Field and Description |
|---|---|
MRRemote |
mrPassedIn
A Hashtable to keep track of used funds for each used blanket contracts during
this reorder process.
|
java.lang.String |
mutexOrg |
java.lang.String |
mutexSite
Site and Org ID.
|
java.lang.String |
mutexType
The type of this reorder set.
|
java.util.Vector |
warnings
A vector of warning warnings.
|
dmDeploySet, dmDeploySkipFieldValidation, fetchStopLimitEnabled, LOOKUPMAXROW, maxSorterSize, mboCountCleanuplist, mboVec, mrdVec, perfStats, strNoBaseLangValueEntered, toBeSavedINSERTONLY, INSERTORUPDATE, UPDATEONLYALLROWS, 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, USERAPPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGERappenderPrefix, 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 |
|---|
ReorderSet(MboServerInterface ms)
Construct the ReorderSet
|
| Modifier and Type | Method and Description |
|---|---|
void |
addWarning(MXApplicationException e)
Adds one warning to the list of warning exceptions.
|
void |
cancelReorder()
Cancel the reorder process.
|
ReorderSetRemote |
decideVendorAndCost(boolean groupByVendor,
boolean considerContract,
int allowanceDays)
Processing vendor and cost for each reorder item.
|
void |
deleteNullOrderUnit(UserInfo userInfo,
java.lang.String siteID)
Delete records from ReorderPad if the order unit is null.
|
protected Mbo |
getMboInstance(MboSet ms)
Generate a new Reorder object.
|
java.lang.Object[] |
getReorderResult()
Get the information that reflects either the preview or the final
reorder result.
|
java.util.Vector |
getReorderWarnings()
Returns a vector of MXApplicationExceptions.
|
void |
monitorLock(java.lang.String siteID)
Spawn a thread to sleep the amount of time specified in mxserver.properties'
mxe.reorder.previewtimeout, and wake up to check if the reorder is being performed
on the request locked by the specified reordermutex record.
|
void |
processQuantity(int allowanceDays,
boolean ignoreReorderPoint) |
void |
reorder() |
void |
reorder(boolean groupByVendor,
boolean considerContract)
This method generates PRs and/or POs for the items in the reorder set.
|
void |
setInsertDate(java.lang.Object parent,
java.util.Date date) |
void |
setKey(java.lang.Object parent,
java.lang.String key,
java.lang.String type,
java.lang.String siteID,
java.lang.String orgID)
Determines what type of reorder request this is and what the key is
to the mutex entry in the mutex table if it has one.
|
void |
setUserName(java.lang.Object parent,
java.lang.String theUserName)
Determines who the user is who placed this reorder request.
|
void |
setViewOnly(java.lang.Object parent,
boolean viewOnlyFlag)
Set the view only flag of this reorder set.
|
void |
useAgreement(boolean useA) |
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, 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, 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, isClosed, 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, setMboSetInfo, 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, toBeSaved, undeleteAll, undoTransaction, unselect, unselect, unselect, unselectAll, updateMbo, updateMboSetRetainMboPositionData, updateRelatedMboSetRetainMboPositionData, useStoredQuery, validate, validateTransaction, verifyESigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabortSql, 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, 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, verifyESiggetBoolean, 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, setValueNullcommitTransaction, fireEventsAfterDB, fireEventsAfterDBCommit, fireEventsBeforeDB, rollbackTransaction, saveTransaction, undoTransaction, validateTransactionpublic java.lang.String mutexType
public java.lang.String mutexSite
public java.lang.String mutexOrg
public MRRemote mrPassedIn
public java.util.Vector warnings
public ReorderSet(MboServerInterface ms) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionprotected Mbo getMboInstance(MboSet ms) throws MXException, java.rmi.RemoteException
getMboInstance in class MboSetms - a MboSetnoneMXExceptionjava.rmi.RemoteExceptionpublic void processQuantity(int allowanceDays,
boolean ignoreReorderPoint)
throws MXException,
java.rmi.RemoteException
processQuantity in interface ReorderSetRemoteMXExceptionjava.rmi.RemoteExceptionReorderSet.processQuantity(int, boolean)public void cancelReorder()
throws MXException,
java.rmi.RemoteException
getReorderSet(),
getReorderSetForMR(),
and getReorderSetForDirectOrderOnly() methods.
It clears the exclusive lock for this reorder if there is one and if it is a request from MR,
the entries in the reorder table will also be removed.cancelReorder in interface ReorderSetRemotenone - noneMXExceptionjava.rmi.RemoteExceptionReorderSet.cancelReorder()public ReorderSetRemote decideVendorAndCost(boolean groupByVendor, boolean considerContract, int allowanceDays) throws MXException, java.rmi.RemoteException
Reorder.processVendorAndCost(boolean)
for detail.decideVendorAndCost in interface ReorderSetRemotegroupByVendor - Indicates if generated PR/POs needs to be grouped by vendors. If it is true,
different items reordered from the same vendors will be different PR/PO
lines on the same PR/PO.considerContract - True if vendor contract is considered.noneMXExceptionjava.rmi.RemoteExceptionReorder#processVendorAndCost(boolean)public void reorder(boolean groupByVendor,
boolean considerContract)
throws MXException,
java.rmi.RemoteException
reorder in interface ReorderSetRemotegroupByVendor - True to genreate PRs grouped by vendor. If groupByVendor is true, each PR is generated for one blanket contract for a vendor.
Multiple PRLines will be inserted. If groupByVendor is false, One PR is
generated for one reorder item.considerContract - booleannoneMXExceptionjava.rmi.RemoteExceptionReorderSet.reorder(boolean, boolean)public void setKey(java.lang.Object parent,
java.lang.String key,
java.lang.String type,
java.lang.String siteID,
java.lang.String orgID)
throws MXException,
java.rmi.RemoteException
parent - Identifies the caller.theStoreRoom - The storeroom. ReorderServiceRemote.REORDERONLY if it is direct order only.key - According to the type, the key can be location, mrnum or even blank if it is direct order
only.type - The type can be "DIRECTORDER", "STOREROOM", "STOREROOMDIRECTORDER", and "MR".MXApplicationException - | GROUP | KEY | REASON | |
|---|---|---|---|
| reorder | InvalidSetStoreRoom | if parent is not serviceRemote |
MXExceptionjava.rmi.RemoteExceptionpublic void setInsertDate(java.lang.Object parent,
java.util.Date date)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setUserName(java.lang.Object parent,
java.lang.String theUserName)
throws MXException,
java.rmi.RemoteException
parent - Identifies the caller of this function.theUserName - The user name for this reorder.MXApplicationException - | GROUP | KEY | REASON | |
|---|---|---|---|
| reorder | InvalidSetUserName | if parent is not serviceRemote |
MXExceptionjava.rmi.RemoteExceptionpublic void setViewOnly(java.lang.Object parent,
boolean viewOnlyFlag)
throws MXException,
java.rmi.RemoteException
parent - Identifies the caller of this functionviewOnlyFlag - View only flag.MXApplicationException - | GROUP | KEY | REASON | |
|---|---|---|---|
| reorder | InvalidSetViewOnly | if parent is not serviceRemote |
MXExceptionjava.rmi.RemoteExceptionpublic void addWarning(MXApplicationException e) throws java.rmi.RemoteException
addWarning in interface ReorderSetRemotee - MXApplication exception, which is the warning exception should be reported to the user
but shouldn't throw.nonejava.rmi.RemoteExceptionReorderSet.addWarning(MXApplicationException)public java.util.Vector getReorderWarnings()
throws java.rmi.RemoteException
getReorderWarnings in interface ReorderSetRemotenone - nonejava.rmi.RemoteExceptionReorderSet.getReorderWarnings()public void useAgreement(boolean useA)
throws java.rmi.RemoteException
useAgreement in interface ReorderSetRemotejava.rmi.RemoteExceptionReorderSet.useAgreement(boolean)public void reorder()
throws MXException,
java.rmi.RemoteException
reorder in interface ReorderSetRemoteMXExceptionjava.rmi.RemoteExceptionReorderSet.reorder()public java.lang.Object[] getReorderResult()
throws java.rmi.RemoteException
getReorderResult in interface ReorderSetRemotejava.rmi.RemoteExceptionReorderSet.getReorderResult()public void monitorLock(java.lang.String siteID)
throws MXException,
java.rmi.RemoteException
monitorLock in interface ReorderSetRemoteMXExceptionjava.rmi.RemoteExceptionReorderSet.monitorLock(String)public void deleteNullOrderUnit(UserInfo userInfo, java.lang.String siteID) throws MXException, java.rmi.RemoteException
deleteNullOrderUnit in interface ReorderSetRemoteuserInfo - UserInfo object of whom is performing this operation.siteID - Site.MXExceptionjava.rmi.RemoteExceptionReorderItemsSet#execute()