Class BTCompanyCreateLog
java.lang.Object
overit.geocall.bl.BusinessTask<CompanyCreateEvent>
overit.geocall.basic.bl.DataLogReactor<CompanyCreateEvent>
overit.geocall.basic.bl.company.task.BTCompanyCreateLog
- All Implemented Interfaces:
Serializable,Tool
@Event(CompanyCreateEvent.class)
public class BTCompanyCreateLog
extends DataLogReactor<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 StringgetData(CompanyCreateEvent event) Gets the data to log.protected LonggetFactory(CompanyCreateEvent event) Gets the id of the factory.protected LonggetObjectId(CompanyCreateEvent event) Gets the unique id associated to the object.protected StringgetType(CompanyCreateEvent event) Gets the type's name of the data log.Methods inherited from class overit.geocall.basic.bl.DataLogReactor
bodyMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTCompanyCreateLog
public BTCompanyCreateLog()
-
-
Method Details
-
getType
Description copied from class:DataLogReactorGets the type's name of the data log.- Specified by:
getTypein classDataLogReactor<CompanyCreateEvent>- Parameters:
event- Event used to retrieve the information about the object to log.- Returns:
- The type's name of the data log.
-
getData
Description copied from class:DataLogReactorGets the data to log.- Specified by:
getDatain classDataLogReactor<CompanyCreateEvent>- Parameters:
event- Event used to retrieve the information about the object to log.- Returns:
- String representing all the data to log inside the db.
-
getObjectId
Description copied from class:DataLogReactorGets the unique id associated to the object.- Specified by:
getObjectIdin classDataLogReactor<CompanyCreateEvent>- Parameters:
event- Event used to retrieve the information about the object to log.- Returns:
- The unique id associated to the object.
-
getFactory
Description copied from class:DataLogReactorGets the id of the factory. Possibly the one associated with the object to log.- Specified by:
getFactoryin classDataLogReactor<CompanyCreateEvent>- Parameters:
event- Event used to retrieve the information about the object to log.- Returns:
- The id associated to the factory.
-