Class BTRepopulateOperationRequirement
java.lang.Object
overit.geocall.bl.BusinessTask<Void>
overit.geocallapp.wfm.workorders.bl.operation.operationRequirement.migration.task.BTRepopulateOperationRequirement
- All Implemented Interfaces:
Serializable,Interruptable,Tool
Task to repopulate the table RWOOPERATIONREQUIREMENT from the values contained in
AWOOPERATION denormalized fields (AWOOMANDATORYIDENTNUMSET, AWOOPREFERREDIDENTNUMSET,
AWOOMANDATORYTEAM).
This task is used for migration from the old denormalized structure to the new normalized RWOOPERATIONREQUIREMENT table.
- Since:
- 22.0
- See Also:
- GCApi:
- task
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected booleanprotected static final LogChannelprotected TimeSlot -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidImplements this method to write the specific task logic to handle the input parameter.voidprotected voidpopulateTable(DBView dbvOperations, PoolKit pk) Populates the RWOOPERATIONREQUIREMENT table from the extracted operations.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
LOG
-
interrupt
protected boolean interrupt -
timeSlot
-
deletedRows
protected int deletedRows -
insertedRows
protected int insertedRows
-
-
Constructor Details
-
BTRepopulateOperationRequirement
public BTRepopulateOperationRequirement()
-
-
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<Void>- 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
-
populateTable
protected void populateTable(DBView dbvOperations, PoolKit pk) throws DAValidateException, DAException, SQLException Populates the RWOOPERATIONREQUIREMENT table from the extracted operations.For each operation with denormalized requirement data, deletes existing records and inserts new ones based on the denormalized field values.
- Parameters:
dbvOperations- the DBView containing operations with denormalized requirement datapk- the PoolKit for database operations- Throws:
DAValidateException- if validation failsDAException- if a database error occursSQLException- if a SQL error occurs
-
pleaseInterrupt
public void pleaseInterrupt()- Specified by:
pleaseInterruptin interfaceInterruptable
-