psdi.app.serviceitem

Class ServiceItem

    • Constructor Detail

      • ServiceItem

        public ServiceItem(MboSet ms)
                    throws MXException,
                           java.rmi.RemoteException
        Parameters:
        ms -
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a new Service Item object.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Item
        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. The following are ServiceItem fields that will be skipped without being copied to the newly duplicated KB
        1. ITEMNUM
        Overrides:
        skipCopyField in class Item
        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:
        psdi.app.srvitem.ServiceItem#loadSkipFieldCopyHashSet
      • delete

        public void delete()
                    throws MXException,
                           java.rmi.RemoteException
        If a service item is deleted then make sure all associated invvendor records are deleted
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)