Class DataCollectionSubConverter<S extends DynO,T extends InsertEvent,U>
java.lang.Object
overit.geocallapp.wfm.core.bl.datacollection.converter.DataCollectionBaseConverter<S,T>
overit.geocallapp.wfm.core.bl.datacollection.converter.DataCollectionSubConverter<S,T,U>
- Type Parameters:
S- must be a class representing the BO of the log tableT- must be the insert event for the log tableU- the class representing the conversion result of a sub element
- Direct Known Subclasses:
DataCollectionOutcomeReasonConverter,DataCollectionTemplateStructureConverter,DataCollectionWorkCycleConverter
public abstract class DataCollectionSubConverter<S extends DynO,T extends InsertEvent,U>
extends DataCollectionBaseConverter<S,T>
This class is used to build the Data Collection SubConverter. A SubConverter is used to convert a specific portion of
a complex object.
-
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 TypeMethodDescriptionconvert(PoolKit poolKit, overit.geocallapp.wfm.survey.template.TemplateTree oldTemplateTree, DataCollectionTemplate newTemplateHeader) The method contains the conversion logic of the sub element(s).Methods inherited from class overit.geocallapp.wfm.core.bl.datacollection.converter.DataCollectionBaseConverter
commit, getLocalizedDescription, getTeacher, insertConversionResult, rollback, setLogger
-
Constructor Details
-
DataCollectionSubConverter
public DataCollectionSubConverter()
-
-
Method Details
-
convert
public abstract List<U> convert(PoolKit poolKit, overit.geocallapp.wfm.survey.template.TemplateTree oldTemplateTree, DataCollectionTemplate newTemplateHeader) throws DAException, DAValidateException The method contains the conversion logic of the sub element(s).- Parameters:
poolKit- the PoolKitoldTemplateTree- old templatenewTemplateHeader- new template- Returns:
- a list of results. One for each element converted
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception- See Also:
-