psdi.app.contract.warranty

Class ContLineAsset

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


    public class ContLineAsset
    extends Mbo
    implements ContLineAssetRemote
    MBO object to represent the object for Contract Line Asset.
    See Contract Package description.
    The attributes in this object are as follows:


    Attribute Name Description
    AssetNum Unique identifier for every asset record.
    ContractAssetId Unique identifier for every ContractAsset 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

      • ContLineAsset

        public ContLineAsset(MboSet ms)
                      throws MXException,
                             java.rmi.RemoteException
        Construct the ContLineAsset object.
        Parameters:
        ms -
        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
        Add a new ContLineAsset record. Required Fields of the ContLineAsset are set in this method. The following fields are initialised with their respective values


        Attribute Name Attribute Value
        contlineassetid unique identifier for every contlineasset.
        contractnum contract number of the contract.
        revisionnum revision 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 CONTLINEASSET record and all the related CONTASSETMETER.
        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
        Undeletes the WARRANTYASSET record and all the related CONTASSETMETER.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • calculateEndDate

        public java.util.Date calculateEndDate()
                                        throws MXException,
                                               java.rmi.RemoteException
        Calculates the end date based on the timeunit and the duration of the Contract.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboSet

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