public class Item extends StatefulMbo implements ItemRemote
This is a organization level object.
The key attributes for this object are as follows: Itemnum and ItemSetID
The attributes in this object are as follows:
Attribute Name | Description |
---|---|
Capitalized | Specifies whether or not this item object is to be financially accounted for as a capitalized or non-capitalized cost. If capitalized is true, this item will always be issued and returned at zero cost regardless of the cost carried in inventory. If capitalized is false, this item will be issued and returned at the standard, last or average cost. The default is false. |
Classstructureid | Class structure identifier. Class structures are the hierarchies of
classifications (for example, centrifugal or rotarty pumps) around which assets can be organized.
|
Description | Short description for this object. A long description may be associated with this object via the Ldkey attribute. |
GroupName | Meter group
for the item. This attribute pertains to rotating items only, and is used to set the GroupName
attribute of the new asset created from this item during
the application of an item assembly structure.
|
Hazardid | Safety hazard associated with this item object.
|
HasIAS | Non-persistant attribute.Indicates if this Item has an IAS associated with it. |
Inspectionrequired | Indicates whether inspection of item is required upon receipt. If true, receipts of this item will not be added to inventory until inspection is completed. |
Itemnum | Unique identifier for this piece of item. |
ItemSetID | Identifier of the itemset identifier for this object.
|
Instance | Non-persistant attribute.Used to copy item assembly structure. |
Ldkey | Long description key. |
Lifeexp | Life expectancy of the item, in hours. |
Lottype | Specifies whether or not this item object is tracked by lot. A lotted item typically has an expiration date that is assigned via a lotnum on receipt. Lot information is contained in the Invlot object. Valid untranslated values are LOT, indicating that an item is lotted, and NOLOT, indicating that an item is not lotted. |
MeterName | Meter associated with the item. This is the meter for which a meter reading is to be recorded if this item is issued to an asset that is associated with the same meter via an AssetMeter object. Only non-rotating items can be associated with a meter. |
Msdsnum | Material Safety Data Sheet (MSDS) number issued by the Occupational Safety and Health Association (OSHA). The MSDS describes product dangers and must be available to purchasers and users of commercial quantities of all hazardous materials. |
Outside | True if this item object belongs to a contractor or vendor and is stored onsite, and the company will be charged for its use. |
Rotating | Is this item object a rotating item? That is, must each item in stock, on reserve or issued to a work order also be associated with a particular asset object via the itemnum attribute on an Asset object? Rotating items, since they also possess asset attributes as rotating asset, can also be moved to locations and added as subassemblies to parent asset objects. The default value for the rotating attribute is false. |
Sparepartautoadd | Indicates if a new spare part object should be added to the sparepart table for this piece of item upon issue of this item object to an asset. |
Stocktype | Item category, for example, BEARINGS, FILTERS and VALVES. The values come from the STKTYPE value list. |
Tax1code - Tax5code | tax 1 code to tax 5 code. |
In19 - In27 | cross-over fields to Prline.Rlin1 - Rlin9 |
onListTab, statusChangeButtonSigoption, targetStatusOption
MULTILANGCOPY, phantomList, phantomQueue
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
Constructor and Description |
---|
Item(MboSet ms)
Construct the item object
|
Modifier and Type | Method and Description |
---|---|
void |
add()
Add a new Item object.
|
MboRemote |
addSparePart(java.lang.String assetnum,
java.lang.String siteid)
add a sparepart record.
|
InventoryRemote |
addToStore(java.lang.String store)
addToStore (String) - public method
WHAT: method used to create an Inventory Record associated with the
passed in storeroom, and with the passed in category type.
|
InventoryRemote |
addToStore(java.lang.String store,
java.lang.String category) |
InventoryRemote |
addToStore(java.lang.String store,
java.lang.String category,
boolean validateLocationLater)
addToStore (String, String,boolean) - public method
WHAT: method used to create an Inventory Record associated with the
passed-in storeroom, and with the passed-in category type.
|
void |
appendDescription(java.lang.String descSpec)
append the passed description from an ItemSpec to the item.description;need to
get classtructure related description first and only one time.
|
void |
applyIAS(MboRemote applyToMbo)
Used by Apply IAS.
|
void |
appValidate()
Checks if rotating item has meter name attached to it
|
void |
autoKeyItemnum() |
void |
canAddKitToStore()
can this kitted item be added to a storeroom, that is, does
it have components, and do all its components have an issue
unit specified in their corresponding Item records.
|
void |
canDelete()
Item.canDelete()-
Checks to see if this object can be deleted
if it is on an asset, throw exception
if it is on a masterpm, throw exception
if this is on a sparepart, throw exception
if this is on an itemstruct, throw exception
if this is part of an inventory - and the inventory can't be deleted - throw exception.
|
void |
canModifyKitStructure()
checks whether it's OK to add or remove an ItemStruct from a kit's
structure.
|
boolean |
canSparePartAutoAdd()
return true if the item allows spareparts to be added.
|
MboSetRemote |
changeCapitalizedStatus(boolean capitalized)
Deprecated.
|
void |
changeCapitalizedStatus(boolean capitalized,
java.lang.String capitalacc,
java.lang.String memo)
loops through all occurrences of this Item's itemnum
attribute in the Inventory object to update GL information
and create and write Capital Cost Adjustment (CAPCSTADJ)
InvTrans records
changes the capitalized attribute for this Item object
|
void |
changeStatus(java.lang.String status,
boolean rolldown,
java.util.Date date,
java.lang.String memo,
long accessModifier)
This method is overridden to add a wrapper to exceptions thrown during change status
and to write warnings whether or not the status change is successful
|
void |
changeStatus(java.lang.String status,
java.util.Date date,
java.lang.String memo,
long accessModifier)
This method is overridden to add a wrapper to exceptions thrown during change status
and to write warnings whether or not the status change is successful
|
boolean |
checkAssetExists()
This method checks if the item exist in Asset.
|
boolean |
checkCIExists()
This method checks if the item exist in CI.
|
boolean |
checkContractExists()
This method checks if the item exist in ContractLine for Contract that are in a status other than
CAN or CLOSE.
|
boolean |
checkInvBalancesExists()
This method checks if the item exist in InvBalances.
|
boolean |
checkJPExists()
This method checks if the item exist in JobItem for job plans that are in a status other
than INACTIVE.
|
void |
checkKitCostType(boolean isKit)
This methods check if the item assembly structure item have lifo/fifo cost type.
|
boolean |
checkMRExists()
This method checks if the item exist in MRLine for MR that are in a status other than CAN
or CLOSE
|
boolean |
checkPOExists()
This method checks if the item exist in POLine for PO that are in a status other than
CAN or CLOSE.
|
boolean |
checkPRExists()
This method checks if the item exist in PRLine for PR that are in a status other than
CAN or COMP.
|
boolean |
checkWOExists()
This method checks if the item exist in WPItem for work orders that are in a status other than COMP
or CLOSE
|
void |
clearClassification()
This method clears the classtructureid and delete itemspec
|
MboSetRemote |
createItemSpecSet()
Deprecated.
replaced by generateItemSpec
|
void |
createTopItemStruct()
Protected method to add a top level ItemStruct for this Item only once.
|
void |
delete(long access)
delete(long) - standard Mbo Delete method.
|
MboRemote |
duplicate()
Duplicate a new item with DocLinks and Item Specifications.
|
void |
generateAutoKey()
Item Object allows the generation of autokeys
Overrides the generateAutoKey() in the Mbo
|
MboSetRemote |
generateItemSpec()
This method generates a new itemspec set based on the classstructureid;it
copies the attriubtes from the classspec.
|
java.lang.String |
getDefaultBin() |
java.lang.String |
getInternalItemType()
Returns the internal representation of the itemtype field.
|
MboSetRemote |
getMboSet(java.lang.String name)
IV30930/60768: this is View Item Availabity mbosets - Locations, Lots, Purchase Orders, Purchase Req, and Contract
Since the mainMbo ITEM is not connected to any owner via relationship - all the child sets are not
subject to security checking - making all the child sets a lookup enabled for the mboframework to
apply security.
|
int |
getNumberOfRotatingAssets()
Get the number of rotating assets for the item - determines if we want to use direct
prepared statements when itemspec.alnvalue/numvalue/tablevalue is changed.
|
MboRemote |
getOneHundredPercent()
return the 100% ItemCondition record for the item
|
java.lang.String |
getProcess()
Gets the work flow process for item.
|
java.lang.String |
getStatusListName()
Gets the name of the value list that contains all the status's.
|
java.lang.String |
getThisComponentsDefaultBin() |
java.lang.String |
getThisComponentsKit() |
MboSetRemote |
getUseThisItemSpecSet()
09-14572: return useThisItemSpecSet
|
void |
init()
Initialize the Item object
|
void |
initFieldFlagsOnMbo(java.lang.String attrName)
The logic of setting the readonly field flags to the mbo for rotating and iskit
attributes.
|
boolean |
isCapitalized()
is this item capitalized?
|
boolean |
isConditionEnabled()
Check to see is this item is condition enabled
|
boolean |
isKit()
is this item a kit, that is, a group of items used
to address a common maintenance need?
|
boolean |
isLotted()
Check to see is this item is lotted
If LOTTYPE's internal value is "LOT"
|
void |
isNewKitComponentUniqueToSet(Mbo newKitItemStruct)
ensures that the passed in kit component has not yet been added
to the kit.
|
boolean |
isObsolete()
Returns true if this item was Obsolete.
|
boolean |
isPendobs()
Returns true if this item was pending obsolence.
|
boolean |
isPlanning()
Returns true if this item was Planning.
|
boolean |
isRollDown()
Returns true if rolldown is true.
|
boolean |
isRotating()
is this a rotating item?
|
void |
processItemSpecSet()
Process the new ItemSpec Set and the old ItemSpec Set(exsiting in db-to be deleted).
|
void |
processUpdateClassStructureID(java.lang.String updateSql)
Update assets(especially large amount of assets) when item classstructure is cleared or changed.
|
boolean |
removeSpecialOrderItems(java.util.Vector storeLoc)
removes those inventory objects that are related to this object by itemnum and that have
a Location attribute in the passed vector and a Category attribute that indicates a special
order item
|
void |
save()
In saving an item, if the classstructureid has been changed
and item is rotating, will need to update asset.classstructureid
and location.classstructureid and need to update the description based upon classstructure
and itemspec.
|
void |
setLotTypeReadOnly(boolean state)
Set Lot Type to read only.
|
void |
setThisComponentsKitAndDefaultBin(java.lang.String kitNum,
java.lang.String defaultBin) |
void |
setUseThisItemSpecSet(MboSetRemote itemSpecSet)
09-14572
|
boolean |
sparePartExists(java.lang.String assetnum,
java.lang.String siteid)
returns true if a sparepart record with the combination of assetnum/itemnum
exists else returns false.
|
void |
toggleRotating()
Toggle the item's rotating flag
|
void |
updateDesc()
set the description field to be the generated value obtained from
the setup of the classstructureid (in asset catalog setup)
and the values/measureunits in the itemspec set.
|
void |
updateInvVendor()
Updates Invvendor non persistent field itemtype.
|
void |
updateRelatedObjects(java.lang.String newStatus,
java.util.Date date,
java.lang.String memo)
Update Inventory and ItemOrgInfo tables with the new status for the item.
|
void |
updateRotatingClassStructureSQLServer(java.lang.String where,
int counter,
long accessModifier)
10-18610: update the passet mboset.classstructureid for SQLServer - also performance
will do incremental save if there are a large number of rotating assets
this is for SQLSERVER only because the one-large insert caused the assetspecid and assetspechistid
too high.
|
void |
validateChangeStatus(java.lang.String status,
boolean rolldown,
java.util.Date date,
java.lang.String memo)
This method validates if the status change is allowed.
|
canChangeMaxStatus, canChangeStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, checkStatusChangeAuthorization, fireEvent, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, determineRequiredFieldsFromERM, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, generateContentUID, getAlwaysFlags, getAttrRestrictionFlag, getAttrRestrictions, getBoolean, getByte, getBytes, getCheckpoint, getClientLocale, getClientTimeZone, getCommLogOwnerNameAndUniqueId, getCondition, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainFilterWhere, getDomainIDs, getDouble, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getRowRestrictionFlag, getRowStamp, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initRelationship, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, modify, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, removeRelatedSet, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDefaultValue, setDefaultValues, setDeleted, setEAuditFieldModified, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setReferencedMbo, setReferencedMbo, setUniqueIDValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromSequence, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canChangeMaxStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption
addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, getBoolean, getByte, getBytes, getCommLogOwnerNameAndUniqueId, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainIDs, getDouble, getExistingMboSet, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInt, getKeyValue, getLinesRelationship, getList, getLockedByDisplayName, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboInitialValue, getMboList, getMboSet, getMboSet, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getPropagateKeyFlag, getRecordIdentifer, getSiteOrg, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getThisMboSet, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, hasHierarchyLink, hasLockSaveRights, isAutoKeyed, isBasedOn, isFlagSet, isForDM, isLocked, isLocked, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isZombie, lock, propagateKeyValue, rollbackToCheckpoint, select, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDeleted, setESigFieldModified, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setIgnoreRecordLockCheck, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setReferencedMbo, setReferencedMbo, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributes
public Item(MboSet ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String getProcess()
public java.lang.String getStatusListName()
getStatusListName
in interface StatefulMboRemote
getStatusListName
in class StatefulMbo
public void init() throws MXException
init
in class Mbo
MXException
public void setLotTypeReadOnly(boolean state) throws MXException, java.rmi.RemoteException
setLotTypeReadOnly
in interface ItemRemote
MXException
java.rmi.RemoteException
setLotTypeReadOnly(boolean state)
public void initFieldFlagsOnMbo(java.lang.String attrName) throws MXException
initFieldFlagsOnMbo
in class Mbo
MXException
public void add() throws MXException, java.rmi.RemoteException
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public void canAddKitToStore() throws MXException, java.rmi.RemoteException
canAddKitToStore
in interface ItemRemote
MXException
java.rmi.RemoteException
checkKitComponents(MboSetRemote components)
public void canModifyKitStructure() throws MXException, java.rmi.RemoteException
canModifyKitStructure
in interface ItemRemote
MXApplicationException("item","cantModKitInStoresStruc",errItem)
MXException
java.rmi.RemoteException
canModifyKitStructure()
public void isNewKitComponentUniqueToSet(Mbo newKitItemStruct) throws MXException, java.rmi.RemoteException
isNewKitComponentUniqueToSet
in interface ItemRemote
thisMbo
- the object to which the meter is being addedMXException
java.rmi.RemoteException
isNewKitComponentUniqueToSet(Mbo newKitItemStruct)
public MboRemote duplicate() throws MXException, java.rmi.RemoteException
duplicate
in interface ItemRemote
duplicate
in interface MboRemote
duplicate
in class Mbo
MXException
java.rmi.RemoteException
duplicate()
public void createTopItemStruct() throws MXException, java.rmi.RemoteException
createTopItemStruct
in interface ItemRemote
MXException
java.rmi.RemoteException
public void autoKeyItemnum() throws MXException, java.rmi.RemoteException
autoKeyItemnum
in interface ItemRemote
MXException
java.rmi.RemoteException
autoKeyItemnum()
public boolean isRotating() throws MXException, java.rmi.RemoteException
isRotating
in interface ItemRemote
MXException
java.rmi.RemoteException
isRotating()
public boolean isCapitalized() throws MXException, java.rmi.RemoteException
isCapitalized
in interface ItemRemote
MXException
java.rmi.RemoteException
isCapitalized()
public boolean isKit() throws MXException, java.rmi.RemoteException
isKit
in interface ItemRemote
MXException
java.rmi.RemoteException
isKit()
public void toggleRotating() throws MXException, java.rmi.RemoteException
toggleRotating
in interface ItemRemote
MXException
java.rmi.RemoteException
toggleRotating()
public MboSetRemote changeCapitalizedStatus(boolean capitalized) throws MXException, java.rmi.RemoteException
changeCapitalizedStatus
in interface ItemRemote
capitalized
- If true, item will be capitalized. If false, item
will be non-capitalized.MXException
java.rmi.RemoteException
changeCapitalizedStatus(boolean capitalized)
public void changeCapitalizedStatus(boolean capitalized, java.lang.String capitalacc, java.lang.String memo) throws MXException, java.rmi.RemoteException
changeCapitalizedStatus
in interface ItemRemote
capitalized
- If true, item will be capitalized. If false, item
will be non-capitalized.capitalacc
- GL Capital Account value provided through the UImemo
- free-form text to be written to InvTrans.MemoMXException
java.rmi.RemoteException
Inventory.changeCapitalizedStatus(boolean, java.lang.String, java.lang.String)
public InventoryRemote addToStore(java.lang.String store, java.lang.String category, boolean validateLocationLater) throws MXException, java.rmi.RemoteException
addToStore
in interface ItemRemote
String
- store = the storeroom to which item should be addedString
- category = the inventory.category which it will be assignedboolean
- validateLocationLater, if true, not checking if
the store exists in the locations table; if false, perform
regular check
RETURNS:
InventoryRemote - the method returns the NEWLY created Inventory MBO,
using the storeroom/category passed in, and THIS itemnum.
CAUTIONS: To avoid letting anyone insert primary key twice
during same process (prior to commit) logic has been
placed here to never let that happen. The logic, however,
will generate a new set each and every time this method is
called successfully.
!!!!!!30 calls before a commit = 30 MboSets in memory. !!!!!
THEREFORE: call commit - ie SAVE - after completing
addToStore transaction (a transaction may include, of course,
calling this method and then setting values.)
or else, face possible resource consequences....
particularly important if this method is being used in any batch scenarios.MXException
java.rmi.RemoteException
addToStore(String store,String category,boolean validateLocationLater)
public InventoryRemote addToStore(java.lang.String store) throws MXException, java.rmi.RemoteException
addToStore
in interface ItemRemote
MXException
java.rmi.RemoteException
addToStore(String store)
public InventoryRemote addToStore(java.lang.String store, java.lang.String category) throws MXException, java.rmi.RemoteException
addToStore
in interface ItemRemote
MXException
java.rmi.RemoteException
addToStore(String store,String category)
public boolean isLotted() throws MXException, java.rmi.RemoteException
isLotted
in interface ItemRemote
MXException
java.rmi.RemoteException
isLotted()
public boolean isConditionEnabled() throws MXException, java.rmi.RemoteException
isConditionEnabled
in interface ItemRemote
MXException
java.rmi.RemoteException
isConditionEnabled()
public java.lang.String getDefaultBin() throws MXException, java.rmi.RemoteException
getDefaultBin
in interface ItemRemote
MXException
java.rmi.RemoteException
getDefaultBin()
public void canDelete() throws MXException, java.rmi.RemoteException
canDelete
in class Mbo
MXException
- - will throw this exception if it can't be deletedjava.rmi.RemoteException
public void delete(long access) throws MXException, java.rmi.RemoteException
delete
in interface MboRemote
delete
in class Mbo
access
- The bitwise flag specified to determine
if certain normal security checks are to be
bypassed for this delete request.
For example:
if the accessModifer is NOACCESSCHECK, then the
check for the object's NODELETE flag and the
call to the object's canDelete() method
will not be performed.
If the accessModifer is NONE, then all the
access checks are performed before this object
is marked delete.MXException
java.rmi.RemoteException
Mbo.delete(long)
public boolean canSparePartAutoAdd() throws MXException, java.rmi.RemoteException
canSparePartAutoAdd
in interface ItemRemote
MXException
java.rmi.RemoteException
canSparePartAutoAdd()
public boolean sparePartExists(java.lang.String assetnum, java.lang.String siteid) throws MXException, java.rmi.RemoteException
sparePartExists
in interface ItemRemote
assetnum
- siteid
- MXException
java.rmi.RemoteException
sparePartExists(String assetnum, String siteid)
public MboRemote addSparePart(java.lang.String assetnum, java.lang.String siteid) throws MXException, java.rmi.RemoteException
addSparePart
in interface ItemRemote
assetnum
- siteid
- asset siteidMXException
java.rmi.RemoteException
addSparePart(String assetnum, String siteid)
public void applyIAS(MboRemote applyToMbo) throws MXException, java.rmi.RemoteException
applyIAS
in interface ItemRemote
applyToMbo
- The mbo (e.q. AssetRemote) to which the
IAS should be applied.MXException
java.rmi.RemoteException
applyIAS(MboRemote applyToMbo)
public MboSetRemote createItemSpecSet() throws MXException, java.rmi.RemoteException
createItemSpecSet
in interface ItemRemote
MXException
java.rmi.RemoteException
createItemSpecSet()
public void updateDesc() throws MXException, java.rmi.RemoteException
updateDesc
in interface ItemRemote
MXException
java.rmi.RemoteException
updateDesc()
public void updateRelatedObjects(java.lang.String newStatus, java.util.Date date, java.lang.String memo) throws MXException, java.rmi.RemoteException
updateRelatedObjects
in interface ItemRemote
MXException
java.rmi.RemoteException
updateRelatedObjects(String newStatus, Date date, String memo)
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXException
java.rmi.RemoteException
public void save() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void appendDescription(java.lang.String descSpec) throws MXException, java.rmi.RemoteException
descSpec
- the numvalue/alnvalue + measureunitid/abbreviation from
one itemspec.MXException
java.rmi.RemoteException
public void generateAutoKey() throws java.rmi.RemoteException, MXException
generateAutoKey
in interface MboRemote
generateAutoKey
in class Mbo
MXException
java.rmi.RemoteException
Mbo.generateAutoKey()
public MboSetRemote generateItemSpec() throws java.rmi.RemoteException, MXException
generateItemSpec
in interface ItemRemote
java.rmi.RemoteException
MXException
generateItemSpec()
public void processItemSpecSet() throws MXException, java.rmi.RemoteException
processItemSpecSet
in interface ItemRemote
MXException
java.rmi.RemoteException
processItemSpecSet()
public void clearClassification() throws java.rmi.RemoteException, MXException
clearClassification
in interface ItemRemote
java.rmi.RemoteException
MXException
clearClassification()
public boolean removeSpecialOrderItems(java.util.Vector storeLoc) throws MXException, java.rmi.RemoteException
removeSpecialOrderItems
in interface ItemRemote
storeLoc
- vector containing the storerooms from which the special order items
are to be removed. Inventory objects whose Location attribute is in the vector
and whose Category attribute indicates a special order item will be marked for deletion.MXApplicationException("item","fromitemserviceonly")
- is thrown if this
method is called from another object. This method should only be
called from method removeSpecialOrderItems in ItemService.MXException
java.rmi.RemoteException
removeSpecialOrderItems(Vector storeLoc)
public MboRemote getOneHundredPercent() throws MXException, java.rmi.RemoteException
getOneHundredPercent
in interface ItemRemote
MXException
java.rmi.RemoteException
getOneHundredPercent()
public void setThisComponentsKitAndDefaultBin(java.lang.String kitNum, java.lang.String defaultBin) throws MXException, java.rmi.RemoteException
setThisComponentsKitAndDefaultBin
in interface ItemRemote
MXException
java.rmi.RemoteException
setThisComponentsKitAndDefaultBin(String kitNum,String defaultBin)
public java.lang.String getThisComponentsKit() throws MXException, java.rmi.RemoteException
getThisComponentsKit
in interface ItemRemote
MXException
java.rmi.RemoteException
getThisComponentsKit()
public java.lang.String getThisComponentsDefaultBin() throws MXException, java.rmi.RemoteException
getThisComponentsDefaultBin
in interface ItemRemote
MXException
java.rmi.RemoteException
getThisComponentsDefaultBin()
public java.lang.String getInternalItemType() throws MXException, java.rmi.RemoteException
getInternalItemType
in interface ItemRemote
MXException
java.rmi.RemoteException
getInternalItemType()
public boolean checkWOExists() throws MXException, java.rmi.RemoteException
checkWOExists
in interface ItemRemote
MXException
java.rmi.RemoteException
psdi.app.item.Item#checkWorkOrder()
public boolean checkInvBalancesExists() throws MXException, java.rmi.RemoteException
checkInvBalancesExists
in interface ItemRemote
MXException
java.rmi.RemoteException
psdi.app.item.Item#checkInvBalances()
public boolean checkAssetExists() throws MXException, java.rmi.RemoteException
checkAssetExists
in interface ItemRemote
MXException
java.rmi.RemoteException
psdi.app.item.Item#checkAsset()
public boolean checkJPExists() throws MXException, java.rmi.RemoteException
checkJPExists
in interface ItemRemote
MXException
java.rmi.RemoteException
psdi.app.item.Item#checkJobPlan()
public boolean checkMRExists() throws MXException, java.rmi.RemoteException
checkMRExists
in interface ItemRemote
MXException
java.rmi.RemoteException
psdi.app.item.Item#checkMR()
public boolean checkPRExists() throws MXException, java.rmi.RemoteException
checkPRExists
in interface ItemRemote
MXException
java.rmi.RemoteException
psdi.app.item.Item#checkPR()
public boolean checkPOExists() throws MXException, java.rmi.RemoteException
checkPOExists
in interface ItemRemote
MXException
java.rmi.RemoteException
psdi.app.item.Item#checkPO()
public boolean checkContractExists() throws MXException, java.rmi.RemoteException
checkContractExists
in interface ItemRemote
MXException
java.rmi.RemoteException
psdi.app.item.Item#checkContracExists()
public boolean checkCIExists() throws MXException, java.rmi.RemoteException
checkCIExists
in interface ItemRemote
MXException
java.rmi.RemoteException
checkCIExists()
public void changeStatus(java.lang.String status, java.util.Date date, java.lang.String memo, long accessModifier) throws MXException, java.rmi.RemoteException
changeStatus
in interface StatefulMboRemote
changeStatus
in class StatefulMbo
status
- The new desired status. This is the translated status
(that is, the status code as it would have been entered by a user, or
valuelist.value
), not
the internal status value (valuelist.maxvalue
).date
- The effective date of the new status is the current date/time.memo
- A string briefly describing the circumstances of the change. The
memo can be null.accessModifier
- A value of NOACCESSCHECK will cause the method not to call canChangeStatus.
Callers using this flag are responsible for ensuring that they are attempting a valid status change.MXException
- Thrown if there is a problem.java.rmi.RemoteException
StatefulMbo.canChangeStatus(String)
public void changeStatus(java.lang.String status, boolean rolldown, java.util.Date date, java.lang.String memo, long accessModifier) throws MXException, java.rmi.RemoteException
changeStatus
in interface ItemRemote
status
- The new desired status. This is the translated status
(that is, the status code as it would have been entered by a user, or
valuelist.value
), not
the internal status value (valuelist.maxvalue
).date
- The effective date of the new status is the current date/time.memo
- A string briefly describing the circumstances of the change. The
memo can be null.MXException
- Thrown if there is a problem.java.rmi.RemoteException
changeStatus(String status, Date date, String memo, long accessModifier)
public void validateChangeStatus(java.lang.String status, boolean rolldown, java.util.Date date, java.lang.String memo) throws MXException, java.rmi.RemoteException
validateChangeStatus
in interface ItemRemote
MXException
- Thrown if there is a problem.java.rmi.RemoteException
validateChangeStatus(String status, boolean rolldown, Date date, String memo)
public boolean isPendobs() throws MXException, java.rmi.RemoteException
isPendobs
in interface ItemRemote
MXException
java.rmi.RemoteException
isPendobs()
public boolean isObsolete() throws MXException, java.rmi.RemoteException
isObsolete
in interface ItemRemote
MXException
java.rmi.RemoteException
psdi.app.item.Item#Obsolete()
public boolean isPlanning() throws MXException, java.rmi.RemoteException
isPlanning
in interface ItemRemote
MXException
java.rmi.RemoteException
psdi.app.item.Item#Planning()
public boolean isRollDown()
public void updateInvVendor() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setUseThisItemSpecSet(MboSetRemote itemSpecSet) throws MXException, java.rmi.RemoteException
itemSpecSet
- MXException
java.rmi.RemoteException
public MboSetRemote getUseThisItemSpecSet() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void updateRotatingClassStructureSQLServer(java.lang.String where, int counter, long accessModifier) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public int getNumberOfRotatingAssets() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void processUpdateClassStructureID(java.lang.String updateSql) throws MXException, java.rmi.RemoteException
updateSql
- MXException
java.rmi.RemoteException
public MboSetRemote getMboSet(java.lang.String name) throws MXException, java.rmi.RemoteException
getMboSet
in interface MboRemote
getMboSet
in class Mbo
name
- The relationship provided to retrieve a
related mboSet, usually using foreign keys.
For example,
"psdi.app.workorder.WOSetRemote.ASSET" is
a relationship for the work order object to
access the asset Set where
"workorder.assetnum=asset.assetnum". The relationship can
also be chained. Such as ASSET.ASSETSTATUS.MXException
- "A relationship called {0} does not exist
for the {1} business object" exception
will be thrown if the relationship was not
found.
"Unknown Object" exception will be thrown
if the database object can not be
found through the relationship.java.rmi.RemoteException
Mbo.getMboSet(String)
public void checkKitCostType(boolean isKit) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException