public class FldDeployedMeterNewReadingDate extends MboValueAdapter
DeployedMeter
's
non-persistent NewReadingDate attribute.mboValue
TYPE_DOMAIN, TYPE_FIELDCLASS, TYPE_KEY, TYPE_UNKNOWN
ALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER
Constructor and Description |
---|
FldDeployedMeterNewReadingDate(MboValue mbv)
Construct and attach to the specified mbo value
|
Modifier and Type | Method and Description |
---|---|
void |
action()
if a modification to NewReadingDate makes this a historical meter
reading, sets new last reading information since it may have
changed relative to this new date, and forces revalidation of
the non-persistent NewReading attribute since the last reading
information has changed.
|
void |
validate()
Checks to make sure that the new meter reading date is not a future date.
|
getAppLink, getIntegrationService, getList, getLookupName, getMatchingAttr, getMatchingAttr, getMboValue, getMboValue, getType, hasList, init, initValue, setType, setValueFromLookup, smartFill, smartFind, smartFind
public FldDeployedMeterNewReadingDate(MboValue mbv)
public void validate() throws MXException, java.rmi.RemoteException
validate
in interface MboValueListener
validate
in class MboValueAdapter
MXApplicationException("asset","nofuturereadings")
- when the current
new meter reading date is in the future.MXException
java.rmi.RemoteException
public void action() throws MXException, java.rmi.RemoteException
action
in interface MboValueListener
action
in class MboValueAdapter
MXException
java.rmi.RemoteException
DeployedMeter.refreshPreviousReadingInfo(Date)
,
FldDeployedMeterNewReading.action()