Class DataCollectionBaseConverter<S extends DynO,T extends InsertEvent>
java.lang.Object
overit.geocallapp.wfm.core.bl.datacollection.converter.DataCollectionBaseConverter<S,T>
- Type Parameters:
S- must be a class representing the BO of the log tableT- must be the insert event for the log table
- Direct Known Subclasses:
DataCollectionConverter,DataCollectionSubConverter
public abstract class DataCollectionBaseConverter<S extends DynO,T extends InsertEvent>
extends Object
Base class used to build the Data Collection Converters.
- Since:
- 13.0
- GCApi:
- bo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected overit.geocallapp.wfm.util.wfmtasklog.WfmTaskLogprotected TeacherDuty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCommit the transactionprotected LocalizedStringgetLocalizedDescription(String description) Create aLocalizedStringstarting from input stringprotected Teacherprotected voidinsertConversionResult(Class<T> insertEventClass, S boConversionResult) Invokes the event.protected voidRollback a transaction.voidsetLogger(overit.geocallapp.wfm.util.wfmtasklog.WfmTaskLog logger) Sets the class used to log.
-
Field Details
-
CONNECTION_POOL_NAME
- See Also:
-
logger
protected overit.geocallapp.wfm.util.wfmtasklog.WfmTaskLog logger -
teacherDuty
-
-
Constructor Details
-
DataCollectionBaseConverter
public DataCollectionBaseConverter()
-
-
Method Details
-
getLocalizedDescription
Create aLocalizedStringstarting from input string- Parameters:
description-- Returns:
- a LocalizedString object
-
insertConversionResult
protected void insertConversionResult(Class<T> insertEventClass, S boConversionResult) throws DAException Invokes the event.- Parameters:
insertEventClass-boConversionResult-- Throws:
DAException
-
getTeacher
-
commit
Commit the transaction- Parameters:
poolKit- the PoolKit containing the transaction to commit- Throws:
DAException
-
rollback
Rollback a transaction.- Parameters:
poolKit- the PoolKit containing the transaction to rollback- Throws:
DAException
-
setLogger
public void setLogger(overit.geocallapp.wfm.util.wfmtasklog.WfmTaskLog logger) Sets the class used to log.- Parameters:
logger- the logger
-