psdi.app.contract.warranty

Class ContAssetMeter

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


    public class ContAssetMeter
    extends Mbo
    implements ContAssetMeterRemote
    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
    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

      • ContAssetMeter

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


        Attribute Name Attribute Value
        contassetmeterid unique identifier for every contassetmeter.
        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
      • calculateEndReading

        public double calculateEndReading()
                                   throws MXException,
                                          java.rmi.RemoteException
        Returns the sum of start reading and meter duration.
        Returns:
        - The sum of startreading and meter duration.
        Throws:
        MXException
        java.rmi.RemoteException