psdi.app.item

Class Item

  • All Implemented Interfaces:
    java.rmi.Remote, ItemRemote, MboConstants, MboRemote, StatefulMboRemote, MaxRemoteProxy
    Direct Known Subclasses:
    ServiceItem, ToolItem


    public class Item
    extends StatefulMbo
    implements ItemRemote
    MBO object to represent an item. See Item Package description for details.

    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 NameDescription
    CapitalizedSpecifies 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.
    ClassstructureidClass structure identifier. Class structures are the hierarchies of classifications (for example, centrifugal or rotarty pumps) around which assets can be organized.
    DescriptionShort description for this object. A long description may be associated with this object via the Ldkey attribute.
    GroupNameMeter 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.
    HazardidSafety hazard associated with this item object.
    HasIASNon-persistant attribute.Indicates if this Item has an IAS associated with it.
    InspectionrequiredIndicates whether inspection of item is required upon receipt. If true, receipts of this item will not be added to inventory until inspection is completed.
    ItemnumUnique identifier for this piece of item.
    ItemSetIDIdentifier of the itemset identifier for this object.
    InstanceNon-persistant attribute.Used to copy item assembly structure.
    LdkeyLong description key.
    LifeexpLife expectancy of the item, in hours.
    LottypeSpecifies 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.
    MeterNameMeter 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.
    MsdsnumMaterial 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.
    OutsideTrue if this item object belongs to a contractor or vendor and is stored onsite, and the company will be charged for its use.
    RotatingIs 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.
    SparepartautoaddIndicates 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.
    StocktypeItem category, for example, BEARINGS, FILTERS and VALVES. The values come from the STKTYPE value list.
    Tax1code - Tax5codetax 1 code to tax 5 code.
    In19 - In27cross-over fields to Prline.Rlin1 - Rlin9
    • Constructor Detail

      • Item

        public Item(MboSet ms)
             throws MXException,
                    java.rmi.RemoteException
        Construct the item object
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getProcess

        public java.lang.String getProcess()
        Gets the work flow process for item.
        Returns:
        the work flow process name for items which is Item.
      • initFieldFlagsOnMbo

        public void initFieldFlagsOnMbo(java.lang.String attrName)
                                 throws MXException
        The logic of setting the readonly field flags to the mbo for rotating and iskit attributes.
        Overrides:
        initFieldFlagsOnMbo in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a new Item object.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • setKitRelatedInfo

        protected void setKitRelatedInfo()
                                  throws MXException,
                                         java.rmi.RemoteException
        sets read/write flags for those attributes related to the IsKit attribute; if IsKit has been modified to be true, sets values for those related attributes.
        The related attributes are:
        • ROTATING
        • CONDITIONENABLED
        • LOTTYPE
        • METERNAME
        Throws:
        MXException
        java.rmi.RemoteException
      • canModifyKitStructure

        public void canModifyKitStructure()
                                   throws MXException,
                                          java.rmi.RemoteException
        checks whether it's OK to add or remove an ItemStruct from a kit's structure. If the kit exists in Inventory, then its structure cannot be modified.
        Specified by:
        canModifyKitStructure in interface ItemRemote
        Throws:
        MXApplicationException("item","cantModKitInStoresStruc",errItem)
        MXException
        java.rmi.RemoteException
        See Also:
        Item.canModifyKitStructure()
      • isNewKitComponentUniqueToSet

        public void isNewKitComponentUniqueToSet(Mbo newKitItemStruct)
                                          throws MXException,
                                                 java.rmi.RemoteException
        ensures that the passed in kit component has not yet been added to the kit. The set against which this component is checked may include other newly added objects that are not yet saved to the database.
        Specified by:
        isNewKitComponentUniqueToSet in interface ItemRemote
        Parameters:
        thisMbo - the object to which the meter is being added
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Item.isNewKitComponentUniqueToSet(Mbo newKitItemStruct)
      • setLotTypeRelatedInfo

        protected void setLotTypeRelatedInfo()
                                      throws MXException,
                                             java.rmi.RemoteException
        sets read/write flags for those attributes related to the LotType attribute; if LotType has been modified to be "LOT", sets values for those related attributes.
        The related attributes are:
        • CONDITIONENABLED
        • ISKIT
        Throws:
        MXException
        java.rmi.RemoteException
      • setConditionEnabledRelatedInfo

        protected void setConditionEnabledRelatedInfo()
                                               throws MXException,
                                                      java.rmi.RemoteException
        sets read/write flags for those attributes related to the ConditionEnabled attribute; if ConditionEnabled has been set to true, sets values for those related attributes.
        The related attributes are:
        • LOTTYPE
        • ISKIT
        Throws:
        MXException
        java.rmi.RemoteException
      • isNewDuplicatedItem

        protected boolean isNewDuplicatedItem()
                                       throws MXException,
                                              java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        Overrides the skipCopyField() in the Mbo. Since this method takes the MboValueInfo as its parameter just check to see if this field needs to be copied or skipped by using the data from the static HashSet. If this field does not need to be copied return true. Only itemnum and the api columns will be skipped in duplicating this item to a new one.
        1. ITEMNUM
        2. ITEMSETID
        3. SOURCESYSID
        4. OWNERSYSID
        5. EXTERNALREFID
        6. SENDERSYSID
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        The - MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        True,if the field does not need to be copied.In all other cases return false.
        Throws:
        java.rmi.RemoteException
        MXException
        See Also:
        Item.loadSkipFieldCopyHashSet()
      • doTopItemStruct

        protected void doTopItemStruct(MboRemote itemStruct)
                                throws MXException,
                                       java.rmi.RemoteException
        Protected method to indicate if this item is a top-level ItemStruct.
        Throws:
        MXException
        java.rmi.RemoteException
      • createTopItemStruct

        public void createTopItemStruct()
                                 throws MXException,
                                        java.rmi.RemoteException
        Protected method to add a top level ItemStruct for this Item only once.
        Specified by:
        createTopItemStruct in interface ItemRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • isKit

        public boolean isKit()
                      throws MXException,
                             java.rmi.RemoteException
        is this item a kit, that is, a group of items used to address a common maintenance need?
        Specified by:
        isKit in interface ItemRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Item.isKit()
      • canToggleRotating

        protected void canToggleRotating()
                                  throws MXException,
                                         java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • canToggleConditionEnabledToStandard

        protected void canToggleConditionEnabledToStandard()
                                                    throws MXException,
                                                           java.rmi.RemoteException
        Can we convert a condition enabled item to standard? if inventory records exists for the item, then do not allowed.
        Throws:
        MXException
        java.rmi.RemoteException
      • canToggleToConditionEnabled

        protected void canToggleToConditionEnabled()
                                            throws MXException,
                                                   java.rmi.RemoteException
        Can we convert a standard item to condition enabled? if rotating item and assets exist for the item, then do not allowed.
        Throws:
        MXException
        java.rmi.RemoteException
      • canToggleIsKit

        protected void canToggleIsKit()
                               throws MXException,
                                      java.rmi.RemoteException
        Can this item's IsKit flag be toggled?
        Throws:
        MXApplicationException("item", - "itemCannotToggleIsKit") if InvBalances exist for the item
        MXApplicationException("item", - "itemCannotKitLottedItem") if item is lotted, item cannot be a kit
        MXException
        java.rmi.RemoteException
      • changeCapitalizedStatus

        public void changeCapitalizedStatus(boolean capitalized,
                                            java.lang.String capitalacc,
                                            java.lang.String memo)
                                     throws MXException,
                                            java.rmi.RemoteException
        1. 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
        2. changes the capitalized attribute for this Item object
        Specified by:
        changeCapitalizedStatus in interface ItemRemote
        Parameters:
        capitalized - If true, item will be capitalized. If false, item will be non-capitalized.
        capitalacc - GL Capital Account value provided through the UI
        memo - free-form text to be written to InvTrans.Memo
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Inventory.changeCapitalizedStatus(boolean, java.lang.String, java.lang.String)
      • addToStore

        public InventoryRemote addToStore(java.lang.String store,
                                          java.lang.String category,
                                          boolean validateLocationLater)
                                   throws MXException,
                                          java.rmi.RemoteException
        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. PARAMETERS:
        Specified by:
        addToStore in interface ItemRemote
        Parameters:
        String - store = the storeroom to which item should be added
        String - category = the inventory.category which it will be assigned
        boolean - 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.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Item.addToStore(String store,String category,boolean validateLocationLater)
      • addToStore

        public InventoryRemote addToStore(java.lang.String store)
                                   throws MXException,
                                          java.rmi.RemoteException
        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. HOW: This method is an overridden version of addToStore(String, String). It defaults a value for category (STK), and calls the overridden method. PARAMETERS:
        Specified by:
        addToStore in interface ItemRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Item.addToStore(String store)
      • isLotted

        public boolean isLotted()
                         throws MXException,
                                java.rmi.RemoteException
        Check to see is this item is lotted If LOTTYPE's internal value is "LOT"
        Specified by:
        isLotted in interface ItemRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Item.isLotted()
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        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.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException - - will throw this exception if it can't be deleted
        java.rmi.RemoteException
      • delete

        public void delete(long access)
                    throws MXException,
                           java.rmi.RemoteException
        delete(long) - standard Mbo Delete method. Inherited and overwritten to accomplish the following: - If we delete the Item, then delete all ItemSpec records associated with this Item
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        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.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • createItemSpecSet

        public MboSetRemote createItemSpecSet()
                                       throws MXException,
                                              java.rmi.RemoteException
        Deprecated. replaced by generateItemSpec
        createItemSpecSet() - public remote method This method was created so that callers can automatically generate an itemspec set using the classspec. The fundamental rules behind adding an itemspec record are as follows: 1) An itemspec record must mirror an existing classspec record. 2) The set of itemspec records for a particular itemnum/classstructureid combo cannot be bigger or smaller than the the set of classspec for a particular classstructureid This method takes ZERO parameters This method returns a set of newly created itemspec records with a number of defaulted/copied values already set! This method uses a classspec set to populate the to-be-returned itemspecset....That classspec set is closed before returning to ensure limited db cursor consumption.
        Specified by:
        createItemSpecSet in interface ItemRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Item.createItemSpecSet()
      • updateDesc

        public void updateDesc()
                        throws MXException,
                               java.rmi.RemoteException
        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.
        Specified by:
        updateDesc in interface ItemRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Item.updateDesc()
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Checks if rotating item has meter name attached to it
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        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. If item is being converted from standard to condition enabled, update existing invcost and invbalances
        Overrides:
        save in class StatefulMbo
        Throws:
        MXException
        java.rmi.RemoteException
      • appendDescription

        public void appendDescription(java.lang.String descSpec)
                               throws MXException,
                                      java.rmi.RemoteException
        append the passed description from an ItemSpec to the item.description;need to get classtructure related description first and only one time.
        Parameters:
        descSpec - the numvalue/alnvalue + measureunitid/abbreviation from one itemspec.
        Throws:
        MXException
        java.rmi.RemoteException
      • processItemSpecSet

        public void processItemSpecSet()
                                throws MXException,
                                       java.rmi.RemoteException
        Process the new ItemSpec Set and the old ItemSpec Set(exsiting in db-to be deleted). If the itemnum/assetattrid is the same between the new and old sets, then undelete the itemspec in the old set while delete the new itemspec in the new set.
        Specified by:
        processItemSpecSet in interface ItemRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Item.processItemSpecSet()
      • removeSpecialOrderItems

        public boolean removeSpecialOrderItems(java.util.Vector storeLoc)
                                        throws MXException,
                                               java.rmi.RemoteException
        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
        Specified by:
        removeSpecialOrderItems in interface ItemRemote
        Parameters:
        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.
        Returns:
        removeItem flag to indicate whether to remove the Item object back in ItemService. Flag is true if item is completely removed from inventory, that is, it is removed from all inventory locations in which it exists. If the item remains in inventory either because not all storerooms have been specified for removal, or because the item's Category attribute does not indicate a special order item in at least one of the specified storerooms, this flag will be false and the Item object will remain in the Item table.
        Throws:
        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
        See Also:
        Item.removeSpecialOrderItems(Vector storeLoc)
      • modifyCommodityGroup

        protected void modifyCommodityGroup()
                                     throws MXException,
                                            java.rmi.RemoteException
        performs tasks related to changing of this object's commoditygroup attribute. This method modifies the Resource-related component of the GlAccount attribute on related Inventory objects to be in synch with the Inventory Resource Code for the new Item.CommodityGroup.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        FldItemCommodityGrp
      • getInternalItemType

        public java.lang.String getInternalItemType()
                                             throws MXException,
                                                    java.rmi.RemoteException
        Returns the internal representation of the itemtype field.
        Specified by:
        getInternalItemType in interface ItemRemote
        Returns:
        - The internal representation of Item Type. Returns one of 'ITEM','TOOL','STDSERVICE'.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Item.getInternalItemType()
      • checkWOExists

        public boolean checkWOExists()
                              throws MXException,
                                     java.rmi.RemoteException
        This method checks if the item exist in WPItem for work orders that are in a status other than COMP or CLOSE
        Specified by:
        checkWOExists in interface ItemRemote
        Returns:
        - true if exists in WPItem Otherwise false.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.item.Item#checkWorkOrder()
      • checkInvBalancesExists

        public boolean checkInvBalancesExists()
                                       throws MXException,
                                              java.rmi.RemoteException
        This method checks if the item exist in InvBalances.
        Specified by:
        checkInvBalancesExists in interface ItemRemote
        Returns:
        - true if exists in InvBalances Otherwise false.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.item.Item#checkInvBalances()
      • checkAssetExists

        public boolean checkAssetExists()
                                 throws MXException,
                                        java.rmi.RemoteException
        This method checks if the item exist in Asset.
        Specified by:
        checkAssetExists in interface ItemRemote
        Returns:
        - true if exists in InvBalances Otherwise false.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.item.Item#checkAsset()
      • checkJPExists

        public boolean checkJPExists()
                              throws MXException,
                                     java.rmi.RemoteException
        This method checks if the item exist in JobItem for job plans that are in a status other than INACTIVE.
        Specified by:
        checkJPExists in interface ItemRemote
        Returns:
        - true if exists in JobItem Otherwise false.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.item.Item#checkJobPlan()
      • checkMRExists

        public boolean checkMRExists()
                              throws MXException,
                                     java.rmi.RemoteException
        This method checks if the item exist in MRLine for MR that are in a status other than CAN or CLOSE
        Specified by:
        checkMRExists in interface ItemRemote
        Returns:
        - true if exists in MRLine Otherwise false.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.item.Item#checkMR()
      • checkPRExists

        public boolean checkPRExists()
                              throws MXException,
                                     java.rmi.RemoteException
        This method checks if the item exist in PRLine for PR that are in a status other than CAN or COMP.
        Specified by:
        checkPRExists in interface ItemRemote
        Returns:
        - true if exists in PRLine Otherwise false.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.item.Item#checkPR()
      • checkPOExists

        public boolean checkPOExists()
                              throws MXException,
                                     java.rmi.RemoteException
        This method checks if the item exist in POLine for PO that are in a status other than CAN or CLOSE.
        Specified by:
        checkPOExists in interface ItemRemote
        Returns:
        - true if exists in POLine Otherwise false.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.item.Item#checkPO()
      • checkContractExists

        public boolean checkContractExists()
                                    throws MXException,
                                           java.rmi.RemoteException
        This method checks if the item exist in ContractLine for Contract that are in a status other than CAN or CLOSE.
        Specified by:
        checkContractExists in interface ItemRemote
        Returns:
        - true if exists in ContractLine Otherwise false.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.item.Item#checkContracExists()
      • changeStatus

        public void changeStatus(java.lang.String status,
                                 java.util.Date date,
                                 java.lang.String memo,
                                 long accessModifier)
                          throws MXException,
                                 java.rmi.RemoteException
        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
        Specified by:
        changeStatus in interface StatefulMboRemote
        Overrides:
        changeStatus in class StatefulMbo
        Parameters:
        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.
        Throws:
        MXException - Thrown if there is a problem.
        java.rmi.RemoteException
        See Also:
        StatefulMbo.canChangeStatus(String)
      • changeStatus

        public void changeStatus(java.lang.String status,
                                 boolean rolldown,
                                 java.util.Date date,
                                 java.lang.String memo,
                                 long accessModifier)
                          throws MXException,
                                 java.rmi.RemoteException
        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
        Specified by:
        changeStatus in interface ItemRemote
        Parameters:
        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.
        Throws:
        MXException - Thrown if there is a problem.
        java.rmi.RemoteException
        See Also:
        Item.changeStatus(String status, Date date, String memo, long accessModifier)
      • isPendobs

        public boolean isPendobs()
                          throws MXException,
                                 java.rmi.RemoteException
        Returns true if this item was pending obsolence.
        Specified by:
        isPendobs in interface ItemRemote
        Returns:
        true if this item is in pending obsolence.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Item.isPendobs()
      • isObsolete

        public boolean isObsolete()
                           throws MXException,
                                  java.rmi.RemoteException
        Returns true if this item was Obsolete.
        Specified by:
        isObsolete in interface ItemRemote
        Returns:
        true if this item is in Obsolete.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.item.Item#Obsolete()
      • isPlanning

        public boolean isPlanning()
                           throws MXException,
                                  java.rmi.RemoteException
        Returns true if this item was Planning.
        Specified by:
        isPlanning in interface ItemRemote
        Returns:
        true if this item is in Planning.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.item.Item#Planning()
      • isRollDown

        public boolean isRollDown()
        Returns true if rolldown is true.
        Returns:
        true false
      • updateInvVendor

        public void updateInvVendor()
                             throws MXException,
                                    java.rmi.RemoteException
        Updates Invvendor non persistent field itemtype.
        Throws:
        MXException
        java.rmi.RemoteException
      • setUseThisItemSpecSet

        public void setUseThisItemSpecSet(MboSetRemote itemSpecSet)
                                   throws MXException,
                                          java.rmi.RemoteException
        09-14572
        Parameters:
        itemSpecSet -
        Throws:
        MXException
        java.rmi.RemoteException
      • getUseThisItemSpecSet

        public MboSetRemote getUseThisItemSpecSet()
                                           throws MXException,
                                                  java.rmi.RemoteException
        09-14572: return useThisItemSpecSet
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • updateRotatingClassStructureSQLServer

        public void updateRotatingClassStructureSQLServer(java.lang.String where,
                                                          int counter,
                                                          long accessModifier)
                                                   throws MXException,
                                                          java.rmi.RemoteException
        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.
        Throws:
        MXException
        java.rmi.RemoteException
      • getNumberOfRotatingAssets

        public int getNumberOfRotatingAssets()
                                      throws MXException,
                                             java.rmi.RemoteException
        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.
        Throws:
        MXException
        java.rmi.RemoteException
      • processUpdateClassStructureID

        public void processUpdateClassStructureID(java.lang.String updateSql)
                                           throws MXException,
                                                  java.rmi.RemoteException
        Update assets(especially large amount of assets) when item classstructure is cleared or changed.
        Parameters:
        updateSql -
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboSet

        public MboSetRemote getMboSet(java.lang.String name)
                               throws MXException,
                                      java.rmi.RemoteException
        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.
        Specified by:
        getMboSet in interface MboRemote
        Overrides:
        getMboSet in class Mbo
        Parameters:
        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.
        Returns:
        The returned related set specified through the relationship.
        Throws:
        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
        See Also:
        Mbo.getMboSet(String)
      • checkKitCostType

        public void checkKitCostType(boolean isKit)
                              throws MXException,
                                     java.rmi.RemoteException
        This methods check if the item assembly structure item have lifo/fifo cost type.
        Throws:
        MXException
        java.rmi.RemoteException