psdi.app.servicecontract

Class ServiceContract

  • java.lang.Object
  • All Implemented Interfaces:
    java.rmi.Remote, ServiceContractRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class ServiceContract
    extends Mbo
    implements ServiceContractRemote
    The MBO to represent a service contract.

    See Service Contract Package description.

    The key attribute for this object is Contract.

    The attributes in this object are as follows:

    Attribute NameDescription
    ContractService contract number.
    DescriptionDescription of the service contract. Long description enabled.
    AssetNumIdentifier for the asset that is serviced by this contract.
    LDKeyLong Description Key. This is a link to text stored in the LongDescription table.
    OrgIdOrganization Identifier.
    SiteIdSite Identifier.
    VendorCompany code for the vendor supplying the service contract.
    VendorsContractNumThe vendor company's identifying number for the service contract.
    • Constructor Detail

      • ServiceContract

        public ServiceContract(MboSet ms)
                        throws MXException,
                               java.rmi.RemoteException
        Constructs the Service Contract object.
        Parameters:
        ms - the Service Contract MboSet.
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • 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
      • duplicate

        public MboRemote duplicate()
                            throws MXException,
                                   java.rmi.RemoteException
        Duplicates a ServiceContract record.
        Specified by:
        duplicate in interface MboRemote
        Overrides:
        duplicate in class Mbo
        Returns:
        MboRemote The newly created ServiceContract mbo.
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws MXException,
                                        java.rmi.RemoteException
        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 the ServiceContract fields will be skipped without being copied to the newly duplicated ServiceContract:
        1. contract
        2. orgid
        3. siteid
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        mvi - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        true If the field does not need to be copied return true, in all other cases return false.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.ServiceContract.ServiceContract#loadSkipFieldCopyHashSet