psdi.app.inventory.virtual

Class WhereUsed

    • Constructor Detail

      • WhereUsed

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

      • init

        public void init()
                  throws MXException
        Description copied from class: Mbo
        Called by the framework when the Mbo has been constructed and the MboValues have been initialized. This can be overridden by the programmer to provide any custom initialization they would like to do.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Description copied from class: Mbo
        This is called when a new Mbo is added to the Mboset collection. It is called AFTER user defaults have been set from the data dictionary. Programmer should usually override this to set some defaults. Default behavior is to do nothing.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long access)
                    throws MXException,
                           java.rmi.RemoteException
        Description copied from class: Mbo
        Mark the object to be deleted depending on the access modifier. This will usually be overridden in the subclass of Mbo as there may be application specific rules as to if and when an object can be deleted. Object is not actually deleted in the database until save() is called. This method will also mark all associated Long Description and Translation Mbos for deletion.
        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)
      • undelete

        public void undelete()
                      throws MXException,
                             java.rmi.RemoteException
        12-14039/IV25576 in 75: applied 11-11433 in 71: broken by 09-14264. WhereUse is non-persistent and does not have primary key colseq, undelete does not have to check as much as the mbo.undelete(). Also moved the delete of spare part out of the delete() method - let it be called only once in the WhereUsedSet.execute() method.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • deleteAssociatedSparePart

        public void deleteAssociatedSparePart()
                                       throws MXException,
                                              java.rmi.RemoteException
        12-14039/IV25576 in 75: applied 11-11433: moved the code inside delete() method that does the deletion of the associated spare part records and be called in whereUseSet.execute()
        Throws:
        MXException
        java.rmi.RemoteException