Class BTDataCollectionOptionsGroupInsert
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionOptionsGroupInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionOptionsGroupInsertEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionOptionsGroupInsertEvent>
overit.geocallapp.wfm.mobileforms.bl.optionsgroup.task.BTDataCollectionOptionsGroupInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionOptionsGroupInsertEvent.class)
public class BTDataCollectionOptionsGroupInsert
extends BTDataCollection<DataCollectionOptionsGroupInsertEvent>
Business task in order to insert a
When the
BODataCollectionOptionsGroup. When the
DataCollectionOptionsGroupInsertEvent is launched the BT notices the call and inserts the
BODataCollectionOptionsGroup basing on the event's input. - Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(DataCollectionOptionsGroupInsertEvent event, PoolKit poolKit) Inserts the givenBODataCollectionOptionsGroupand writes the newly generated id into the event journal.protected voidvalidateInput(BODataCollectionOptionsGroup dataCollectionOptionsGroup, PoolKit poolKit) Validates the input data for the data collection options group before inserting.Methods inherited from class overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection
getException, isValidExecution, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, checkValidExecution, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTDataCollectionOptionsGroupInsert
public BTDataCollectionOptionsGroupInsert()
-
-
Method Details
-
execute
protected void execute(DataCollectionOptionsGroupInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts the givenBODataCollectionOptionsGroupand writes the newly generated id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionOptionsGroupInsertEvent>- Parameters:
event- theDataCollectionOptionsGroupInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validateInput
protected void validateInput(BODataCollectionOptionsGroup dataCollectionOptionsGroup, PoolKit poolKit) throws DAValidateException, DAException Validates the input data for the data collection options group before inserting.- Parameters:
dataCollectionOptionsGroup- theBODataCollectionOptionsGroupto validatepoolKit- thePoolKitfor database operations- Throws:
DAValidateException- if validation fails (e.g., missing required multilanguage values or null model)DAException- if a database access error occurs during validation
-