psdi.app.meter

Class FldDeployedMeterPreviousReading

    • Constructor Detail

      • FldDeployedMeterPreviousReading

        public FldDeployedMeterPreviousReading(MboValue mbv)
                                        throws java.rmi.RemoteException,
                                               MXException
        Construct without a criteria.
        Throws:
        java.rmi.RemoteException
        MXException
    • Method Detail

      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        if this value's mbo is being added to the database, that is, it's a new record, this field class sets the value for DeployedMeter attribute NewReading to be the same as itself; sets related non-persistent attributes PreviousReadingDate and PreviousReadingInspector if they are null; clears the non-persistent PreviousReadingDate and PreviousReadingInspector attributes if this value is being changed from a non-null to a null value; if this value is being set to a non-null value, sets the Active attribute's READONLY field flag to true. Otherwise, it sets this flag to false. If this value's mbo is being updated, return without performing any of the actions in this method.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class FldDeployedMeterNewReading
        Throws:
        MXException
        java.rmi.RemoteException