Class BTDuplicateMeter
java.lang.Object
overit.geocall.bl.BusinessTask<DuplicateMeterEvent>
overit.geocallapp.wfm.ai.bl.configuration.template.task.BTDuplicateMeter
- All Implemented Interfaces:
Serializable,Tool
@Event(DuplicateMeterEvent.class)
public class BTDuplicateMeter
extends BusinessTask<DuplicateMeterEvent>
Business task to prepare the data used on Automatic Meter Reading Dashboard.
- Since:
- 12.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<BOMeterReadingsMeasure> associateMeasures(Long idTemplate, Long idTemplateToDuplicate, PoolKit poolKit) protected voidbody(DuplicateMeterEvent i, PoolKit pk) Implements this method to write the specific task logic to handle the input parameter.protected voidinsertNewMeasures(List<BOMeterReadingsMeasure> measures, PoolKit poolKit) protected LonginsertNewTemplate(BOMeterReadingsTemplate templateToInsert, PoolKit poolKit) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTDuplicateMeter
public BTDuplicateMeter()
-
-
Method Details
-
body
Description copied from class:BusinessTaskImplements this method to write the specific task logic to handle the input parameter.- Specified by:
bodyin classBusinessTask<DuplicateMeterEvent>- Parameters:
i- the object upon which the task will works onpk- the poolkit containing the reference to the database connection that can be used- Throws:
DAException- in case of database errorDAValidateException- in case of database validation error
-
insertNewTemplate
protected Long insertNewTemplate(BOMeterReadingsTemplate templateToInsert, PoolKit poolKit) throws DAValidateException, DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
associateMeasures
protected List<BOMeterReadingsMeasure> associateMeasures(Long idTemplate, Long idTemplateToDuplicate, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
insertNewMeasures
protected void insertNewMeasures(List<BOMeterReadingsMeasure> measures, PoolKit poolKit) throws DAValidateException, DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-