Class BTMicroclusterAggregateSystemInsert
java.lang.Object
overit.geocall.bl.BusinessTask<MicroclusterAggregateSystemInsertEvent>
overit.geocallapp.wfm.core.ux.location.microcluster.microclusteraggregate.task.BTMicroclusterAggregateSystemInsert
- All Implemented Interfaces:
Serializable,Tool
@Event(MicroclusterAggregateSystemInsertEvent.class)
public class BTMicroclusterAggregateSystemInsert
extends BusinessTask<MicroclusterAggregateSystemInsertEvent>
Business task in order to insert a
When the
BOMicroclusterAggregate. When the
MicroclusterAggregateSystemInsertEvent is launched the BT
notices the call and inserts the BOMicroclusterAggregate basing on
the event's input. - See Also:
- GCApi:
- task
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DAOMicroclusterZoneprotected DAOSearchMicroclusterZoneprotected DBViewprotected Longprotected BOStructureValidityPeriod -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(MicroclusterAggregateSystemInsertEvent event, PoolKit pk) Implements this method to write the specific task logic to handle the input parameter.protected voidinsertMicroClusterAggregate(String istat, String cap, PoolKit pk) Insert the new microclusters aggregates headersprotected voidinsertRMicroclusterZone(String istat, String cap, PoolKit pk) Insert in the RMICROCLUSTERZONE a record for each microcluster in the microcluster aggregateprotected voidupdateRMicroclusterZone(String istat, String cap, PoolKit pk) update RMZOPOSTCODE and RMZOMUNICIPALITYCODE of RMICROCLUSTERZONE table with AMCLMICROCLUSTER data, for each record of the period with municipality code and postcode of inserted aggregatesprotected voidUpdate RMICROCLUSTERZONE foreign key to AMCAGGREGATE with the values of original microcluster aggregatesMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
operationCenter
-
period
-
newAggregates
-
daoRMCZone
-
daoSearchMCZone
-
-
Constructor Details
-
BTMicroclusterAggregateSystemInsert
public BTMicroclusterAggregateSystemInsert()
-
-
Method Details
-
body
protected void body(MicroclusterAggregateSystemInsertEvent event, PoolKit pk) throws DAException, DAValidateException Description copied from class:BusinessTaskImplements this method to write the specific task logic to handle the input parameter.- Specified by:
bodyin classBusinessTask<MicroclusterAggregateSystemInsertEvent>- Parameters:
event- 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
-
insertRMicroclusterZone
protected void insertRMicroclusterZone(String istat, String cap, PoolKit pk) throws DAException, DAValidateException Insert in the RMICROCLUSTERZONE a record for each microcluster in the microcluster aggregate- Parameters:
istat-cap-pk-- Throws:
DAExceptionDAValidateException
-
insertMicroClusterAggregate
protected void insertMicroClusterAggregate(String istat, String cap, PoolKit pk) throws DAException, DAValidateException Insert the new microclusters aggregates headers- Throws:
DAExceptionDAValidateException
-
updateRMicroclusterZone
protected void updateRMicroclusterZone(String istat, String cap, PoolKit pk) throws DAException, DAValidateException update RMZOPOSTCODE and RMZOMUNICIPALITYCODE of RMICROCLUSTERZONE table with AMCLMICROCLUSTER data, for each record of the period with municipality code and postcode of inserted aggregates- Throws:
DAExceptionDAValidateException
-
updateRMicroclusterZoneKeys
Update RMICROCLUSTERZONE foreign key to AMCAGGREGATE with the values of original microcluster aggregates- Throws:
DAExceptionDAValidateException
-