Class DataCollectionConverter<S extends DynO,T extends InsertEvent>
java.lang.Object
overit.geocallapp.wfm.core.bl.datacollection.converter.DataCollectionBaseConverter<S,T>
overit.geocallapp.wfm.core.bl.datacollection.converter.DataCollectionConverter<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:
DataCollectionSheetConverter,DataCollectionTableNodesConverter,DataCollectionTemplateConverter,DataCollectionTemplateTypeConverter
public abstract class DataCollectionConverter<S extends DynO,T extends InsertEvent>
extends DataCollectionBaseConverter<S,T>
This class is used to build the main Data Collection Converter.
This class can be used to create a custom main converter.
- Since:
- 13.0
- GCApi:
- bo
-
Field Summary
Fields inherited from class overit.geocallapp.wfm.core.bl.datacollection.converter.DataCollectionBaseConverter
CONNECTION_POOL_NAME, logger, teacherDuty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidClose the logger.voidThe main method to be invoked to start the conversion.abstract voidconvertBody(PoolKit poolKit) The method that contains the conversion logic.abstract StringReturns the string to be used as log titleprotected voidInitialize the logger.protected voidinitLogger(Long id) Initializ the logger using the id in log title.Return true if the converter is used in Massive mode.voidsetMassive(Boolean massive) Sets the conversion mode.Methods inherited from class overit.geocallapp.wfm.core.bl.datacollection.converter.DataCollectionBaseConverter
commit, getLocalizedDescription, getTeacher, insertConversionResult, rollback, setLogger
-
Constructor Details
-
DataCollectionConverter
public DataCollectionConverter()
-
-
Method Details
-
convert
The main method to be invoked to start the conversion. This method manage log initialization and closure.- Parameters:
poolKit- the pool kitisMassive- the is massive- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
initLogger
Initialize the logger.- Throws:
DAExceptionDAValidateException
-
initLogger
Initializ the logger using the id in log title.- Parameters:
id- the unique identifier of the object to be converted- Throws:
DAExceptionDAValidateException
-
closeLogger
protected void closeLogger()Close the logger. -
isMassive
Return true if the converter is used in Massive mode.- Returns:
- true if massive, false otherwise
-
setMassive
Sets the conversion mode.- Parameters:
massive- the conversion mode
-
convertBody
The method that contains the conversion logic.- Parameters:
poolKit- the pool kit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
getLogDescription
Returns the string to be used as log title- Returns:
- the log title
-