psdi.app.workorder.virtual

Class ShowPlanMboSet

  • java.lang.Object
    • java.rmi.server.RemoteObject
      • java.rmi.server.RemoteServer
        • java.rmi.server.UnicastRemoteObject
    • Field Detail

      • name

        protected java.lang.String name
        Name of the set
      • relationship

        protected java.lang.String relationship
        Name of the relationship to use to get the Mbos that make up the set.
      • compareOrderBy

        protected boolean compareOrderBy
        Before reading the first record from the real set, we compare the order by clauses.
      • orderby

        protected OrderBy orderby
        Special data structure to hold the order by clause
      • currentWO

        protected WO currentWO
        The current work order this set is displaying for.
      • currentChildren

        protected ChildrenSet currentChildren
        CHILDREN set of the current work order.
      • currentChildPos

        protected int currentChildPos
        Current position in the children set. Which child did we add mbo for last? -1 indicates the current WO's WPLabor
      • applicationClause

        protected java.lang.String applicationClause
        issue 07-19842 - store the application where
    • Constructor Detail

      • ShowPlanMboSet

        public ShowPlanMboSet(MboRemote owner,
                              java.lang.String name,
                              java.lang.String relationship)
                       throws java.rmi.RemoteException
        Constructor.
        Parameters:
        relationship - "WPLABOR", "WPMATERIAL", "WPTOOL"
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • getName

        public java.lang.String getName()
                                 throws java.rmi.RemoteException
        Description copied from class: FauxMboSet
        Define to give the MboSet a name. You may want to spoof a real name or define a unique name for the set.
        Specified by:
        getName in interface MboSetRemote
        Specified by:
        getName in class FauxMboSet
        Throws:
        java.rmi.RemoteException
      • setCurrentWorkOrder

        public void setCurrentWorkOrder(MboRemote mbo)
                                 throws MXException,
                                        java.rmi.RemoteException
        This method provides a new current work order for which we want to display work plan labor for. The set will change to contain related records for this work order and it's task work order children.
        Parameters:
        mbo - The new current work order.
        Throws:
        MXException
        java.rmi.RemoteException
      • fetchMbos

        public void fetchMbos(int toPosition)
                       throws MXException,
                              java.rmi.RemoteException
        Mbo supplier method checks for any order by defined. If there is an order by clause, all Mbos are read in and sorted in memory.
        Specified by:
        fetchMbos in class FauxMboSet
        Throws:
        MXException
        java.rmi.RemoteException
      • getOrderBy

        public java.lang.String getOrderBy()
                                    throws java.rmi.RemoteException
        Returns the current order by of the set.
        Specified by:
        getOrderBy in interface MboSetRemote
        Overrides:
        getOrderBy in class FauxMboSet
        Returns:
        The Order By clause
        Throws:
        java.rmi.RemoteException
      • addAtIndex

        public MboRemote addAtIndex(long accessModifier,
                                    int index)
                             throws MXException,
                                    java.rmi.RemoteException
        Adds a new Mbo at the position specified.
        Specified by:
        addAtIndex in interface MboSetRemote
        Overrides:
        addAtIndex in class FauxMboSet
        Parameters:
        index - Where to add the new Mbo.
        Returns:
        The new mbo.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.mbo.MboSet#addAtIndex(int, long)
      • addForFauxSet

        protected Mbo addForFauxSet(MboSet realSet)
                             throws java.rmi.RemoteException,
                                    MXException
        Create for issue 08-22334, add with jspdefaults defined against the FauxMboSet
        Parameters:
        realSet - where to actually add the Mbo
        Returns:
        The new Mbo
        Throws:
        java.rmi.RemoteException
        MXException
      • getZombie

        public MboRemote getZombie()
                            throws java.rmi.RemoteException
        This method should be overridden so that in returns a Zombie Mbo of the type of Mbo that makes up this set.
        Specified by:
        getZombie in interface MboSetRemote
        Overrides:
        getZombie in class FauxMboSet
        Throws:
        java.rmi.RemoteException
      • canAdd

        public void canAdd()
                    throws MXException
        Since additions to this set will occur in the parent's set, check that set to see if can add.
        Throws:
        MXException
      • finishPlanMove

        protected void finishPlanMove(MboRemote original,
                                      MboRemote copy)
                               throws MXException,
                                      java.rmi.RemoteException
        This method completes any moves of Plan Mbos between the different work order owned Plan Sets. The base class does nothing.
        Throws:
        MXException
        java.rmi.RemoteException
      • getDefaultValue

        public java.lang.String getDefaultValue(java.lang.String attribute)
                                         throws MXException,
                                                java.rmi.RemoteException
        Gets the screen default from the real set of the top WO.
        Specified by:
        getDefaultValue in interface MboSetRemote
        Overrides:
        getDefaultValue in class FauxMboSet
        Parameters:
        attribute - Name
        Returns:
        value
        Throws:
        MXException
        java.rmi.RemoteException
      • setDefaultValue

        public void setDefaultValue(java.lang.String attribute,
                                    java.lang.String value)
                             throws MXException,
                                    java.rmi.RemoteException
        Sets the screen default to the real set of the top WO.
        Specified by:
        setDefaultValue in interface MboSetRemote
        Overrides:
        setDefaultValue in class FauxMboSet
        Parameters:
        attribute - Name
        Throws:
        MXException
        java.rmi.RemoteException
      • addedMbo

        public void addedMbo(MboRemote newMbo,
                             int position)
                      throws MXException,
                             java.rmi.RemoteException
        A mbo has been added to the WO's related mboset. Add the mbo to this set.
        Specified by:
        addedMbo in interface MboSetListener
        Parameters:
        newMbo - The newly created Mbo.
        position - The postion of the new Mbo.
        Throws:
        MXException
        java.rmi.RemoteException
      • removedMbo

        public void removedMbo(MboRemote newMbo,
                               int position)
                        throws MXException,
                               java.rmi.RemoteException
        Reports that a Mbo has been removed from the MboSet. Any exception thrown here will be returned by the method removing the Mbo.
        Specified by:
        removedMbo in interface MboSetListener
        Parameters:
        newMbo - The recently removed Mbo.
        position - The postion of the Mbo before it was removed.
        Throws:
        MXException
        java.rmi.RemoteException