Class DataCollectionTableNodesConverter
java.lang.Object
overit.geocallapp.wfm.core.bl.datacollection.converter.DataCollectionBaseConverter<BODataCollectionTableNodeConversion,DataCollectionTableNodeConversionInsertEvent>
overit.geocallapp.wfm.core.bl.datacollection.converter.DataCollectionConverter<BODataCollectionTableNodeConversion,DataCollectionTableNodeConversionInsertEvent>
overit.geocallapp.wfm.core.bl.datacollection.converter.tablenode.DataCollectionTableNodesConverter
public class DataCollectionTableNodesConverter
extends DataCollectionConverter<BODataCollectionTableNodeConversion,DataCollectionTableNodeConversionInsertEvent>
Read the StaticView listed in TDCSDATATABLE and copy all values in
ADCOPTIONSGROUP.
- Since:
- 13.0
- GCApi:
- bo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class overit.geocallapp.wfm.core.bl.datacollection.converter.DataCollectionBaseConverter
CONNECTION_POOL_NAME, logger, teacherDuty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconvertBody(PoolKit poolKit) Convert the static views in Option Groups.protected voidcreateOptionGroups(PoolKit poolKit, String[] sk, String[] ss, HashGetter hgTable, BODataCollectionTableNodeConversion conversionLog) Create option groups.protected String[]Gets a string representation of keys in static view.protected String[]getLabels(HashGetter hgTable, StaticView svTable, String[] format, String[] sk) Gets the labels from static view configuration.Returns the string to be used as log title.Methods inherited from class overit.geocallapp.wfm.core.bl.datacollection.converter.DataCollectionConverter
closeLogger, convert, initLogger, initLogger, isMassive, setMassiveMethods inherited from class overit.geocallapp.wfm.core.bl.datacollection.converter.DataCollectionBaseConverter
commit, getLocalizedDescription, getTeacher, insertConversionResult, rollback, setLogger
-
Field Details
-
TDDTID
- See Also:
-
TDDTSTATICVIEW
- See Also:
-
TDDTFORMAT
- See Also:
-
TDDTDESCRIPTION
- See Also:
-
TDDTISACTIVE
- See Also:
-
TDDTSEPARATOR
- See Also:
-
-
Constructor Details
-
DataCollectionTableNodesConverter
public DataCollectionTableNodesConverter()
-
-
Method Details
-
convertBody
Convert the static views in Option Groups.- Specified by:
convertBodyin classDataCollectionConverter<BODataCollectionTableNodeConversion,DataCollectionTableNodeConversionInsertEvent> - Parameters:
poolKit- the pool kit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
createOptionGroups
protected void createOptionGroups(PoolKit poolKit, String[] sk, String[] ss, HashGetter hgTable, BODataCollectionTableNodeConversion conversionLog) throws DAException, DAValidateException Create option groups.- Parameters:
poolKit- the pool kitsk- array of idsss- array of labelshgTable- all static view dataconversionLog- conversion log BO.- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
getLabels
Gets the labels from static view configuration.- Parameters:
hgTable- the hg tablesvTable- the sv tableformat- the formatsk- the sk- Returns:
- the labels
-
getKeys
Gets a string representation of keys in static view.- Parameters:
keys- the keys- Returns:
- the keys string array
-
getLogDescription
Returns the string to be used as log title.- Specified by:
getLogDescriptionin classDataCollectionConverter<BODataCollectionTableNodeConversion,DataCollectionTableNodeConversionInsertEvent> - Returns:
- the log title
-