psdi.app.contract.warranty

Class WarrantyAsset

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


    public class WarrantyAsset
    extends Mbo
    implements WarrantyAssetRemote
    MBO object to represent the object for authorizing contracts. Only those sites that have an entry in this table will be able to access the contract.
    See Contract Package description.
    The attributes in this object are as follows:


    Attribute Name Description
    WarrantyAssetId Unique identifier for every WarrantyAsset record.
    ContractNum Contract number.
    OrgId The organization identifier which indicates the organization in which this contract was created..
    RevisionNum Revision number of the contract.

    Last Update: Monday, April 11, 2004 - Ganesh - javadocs

    • Constructor Detail

      • WarrantyAsset

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a new WarrantyAsset record. Required Fields of the WarrantyAsset are set in this method. The following fields are initialised with their respective values


        Attribute Name Attribute Value
        warrantyassetid unique identifier for every warrantyasset.
        contractnum contract number of the contract.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • propagateKeyValue

        public void propagateKeyValue(java.lang.String keyName,
                                      java.lang.String keyValue)
                               throws MXException,
                                      java.rmi.RemoteException
        Set value for CONTRACTNUM.
        Specified by:
        propagateKeyValue in interface MboRemote
        Overrides:
        propagateKeyValue in class Mbo
        Parameters:
        keyName - Should equal "CONTRACTNUM" or else nothing will be propagated.
        keyValue - The new value of CONTRACTNUM.
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Deletes the WARRANTYASSET record and all the related CONTLINEASSET.
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - 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
        Deletes the WARRANTYASSET record and all the related CONTLINEASSET.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboSet

        public MboSetRemote getMboSet(java.lang.String name)
                               throws MXException,
                                      java.rmi.RemoteException
        If the relationship name is CONTLINEASSET, return various sets based on the data in the WarrantyAsset table.
        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)
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Description copied from class: Mbo
        Can the object be deleted ? This is object specific and should be overridden.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Checks to see it an asset or a location or an asset type is present.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException