Class BTPermitConverter
java.lang.Object
overit.geocall.bl.BusinessTask<PermitsConvertEvent>
overit.geocallapp.wfm.core.bl.permits.converter.task.BTPermitConverter
- All Implemented Interfaces:
Serializable,Tool
@Event(PermitsConvertEvent.class)
public class BTPermitConverter
extends BusinessTask<PermitsConvertEvent>
This class is used to converter Permit data.
- Since:
- 14.0
- See Also:
- GCApi:
- bo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(PermitsConvertEvent event, PoolKit pk) Implements this method to write the specific task logic to handle the input parameter.protected voidClose the logger.voidconvertBody(PoolKit poolKit) The method that contains the conversion logic.protected voidReturns the string to be used as log titleprotected voidInitialize the logger.protected voidmanageAttachment(HashGetter hgRow, Map<Long, Long> newPermitObtainedIdMap, PoolKit poolKit) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
CONNECTION_POOL_NAME
- See Also:
-
logger
-
cachedTableIds
-
TPERMIT
- See Also:
-
warnings
protected int warnings -
convertedRecord
protected int convertedRecord
-
-
Constructor Details
-
BTPermitConverter
public BTPermitConverter()
-
-
Method Details
-
counterInit
protected void counterInit() -
initLogger
Initialize the logger.- Throws:
DAExceptionDAValidateException
-
closeLogger
protected void closeLogger()Close the logger. -
convertBody
The method that contains the conversion logic.- Parameters:
poolKit-- Throws:
DAExceptionDAValidateException
-
manageAttachment
protected void manageAttachment(HashGetter hgRow, Map<Long, Long> newPermitObtainedIdMap, PoolKit poolKit) throws DAException, DAValidateException- Throws:
DAExceptionDAValidateException
-
getLogDescription
Returns the string to be used as log title- Returns:
- the log title
-
body
Description copied from class:BusinessTaskImplements this method to write the specific task logic to handle the input parameter.- Specified by:
bodyin classBusinessTask<PermitsConvertEvent>- 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
-