Class BTCompanyCreate
java.lang.Object
overit.geocall.bl.BusinessTask<CompanyCreateEvent>
overit.geocall.basic.bl.company.task.BTCompanyCreate
- All Implemented Interfaces:
Serializable,Tool
@Event(CompanyCreateEvent.class)
public class BTCompanyCreate
extends BusinessTask<CompanyCreateEvent>
Task that listen the
Can raise a DAValidate exception in case there's an error before the data extraction (e.g: missing parameters, or miss-configuration), or a DAException if there is some connection problem with the database.
CompanyCreateEvent and add the new company into the database.
Can raise a DAValidate exception in case there's an error before the data extraction (e.g: missing parameters, or miss-configuration), or a DAException if there is some connection problem with the database.
- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(CompanyCreateEvent event, PoolKit pk) Implements this method to write the specific task logic to handle the input parameter.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTCompanyCreate
public BTCompanyCreate()
-
-
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<CompanyCreateEvent>- 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
-