Class BTNewProjectHeaderCode
java.lang.Object
overit.geocall.bl.BusinessTask<NewProjectHeaderCodeEvent>
overit.geocallapp.wfm.project.bl.header.task.BTNewProjectHeaderCode
- All Implemented Interfaces:
Serializable,Tool
@Event(NewProjectHeaderCodeEvent.class)
public class BTNewProjectHeaderCode
extends BusinessTask<NewProjectHeaderCodeEvent>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(NewProjectHeaderCodeEvent event, PoolKit pk) Implements this method to write the specific task logic to handle the input parameter.protected Stringprotected LonggetLastProgressive(String referenceYear, PoolKit pk) protected Stringprotected voidinit(NewProjectHeaderCodeEvent event, PoolKit pk) protected voidupdateProgressive(Long lastProgressive, Long newProgressive, PoolKit pk) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
PREFIX
- See Also:
-
SEPARATOR
- See Also:
-
PROGRESSIVE_DECIMALS
protected static final int PROGRESSIVE_DECIMALS- See Also:
-
referenceDate
-
progressiveDecimals
-
code
-
daoPPG
-
referenceYear
-
progressiveId
-
-
Constructor Details
-
BTNewProjectHeaderCode
public BTNewProjectHeaderCode()
-
-
Method Details
-
body
protected void body(NewProjectHeaderCodeEvent 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<NewProjectHeaderCodeEvent>- 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
-
init
protected void init(NewProjectHeaderCodeEvent event, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getYear
-
getLastProgressive
protected Long getLastProgressive(String referenceYear, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
buildCode
-
updateProgressive
protected void updateProgressive(Long lastProgressive, Long newProgressive, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-