Class Upload2TargetBs
java.lang.Object
de.businesscode.bcdui.upload.data.steps.Upload2TargetBs
- All Implemented Interfaces:
IUploadStep
This class is responsible for transferring data from bcdui_upload_rowcol into the target BindingSet
It relies on correct format of the data in bcdui_upload_rowcol. Rows having entries in bcd_dataupload_validation are skipped.
-
Constructor Summary
ConstructorsConstructorDescriptionUpload2TargetBs(UploadControl uc, String userId) ConstructorUpload2TargetBs(UploadControl uc, String userId, String stepId) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidextend(StringBuilder insList, StringBuilder fromList, List<Object> params) override this method to extend the INSERT / FROM lists, i.e. to inject custom data when writing to target table, the list is VTL syntax, scoped bindingsets: $target = target, $rowCol = bcd_dataupload_rowcol, $val = bcd_dataupload_validationprotected StringgetDowncastType(int bindingItemIndex) determines target type to cast on database for given bindingitemvoidprocess()GoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.businesscode.bcdui.upload.data.steps.IUploadStep
setParams
-
Constructor Details
-
Upload2TargetBs
Constructor- Parameters:
uc-userId-stepId-
-
Upload2TargetBs
Constructor- Parameters:
uc-userId-
-
-
Method Details
-
process
Go- Specified by:
processin interfaceIUploadStep- Throws:
ExceptionSQLExceptionIOExceptionUploadException
-
getDowncastType
determines target type to cast on database for given bindingitem- Parameters:
bindingItemIndex- - the binding item index to determine the typename for- Returns:
- the target type on database, the default implememtation returns type-name from binding-item, i.e. 'VARCHAR'
-
extend
override this method to extend the INSERT / FROM lists, i.e. to inject custom data when writing to target table, the list is VTL syntax, scoped bindingsets: $target = target, $rowCol = bcd_dataupload_rowcol, $val = bcd_dataupload_validation- Parameters:
insList- - must not contain aliasesfromList- - may contain params placeholdersparams- - adjacent to fromList; must not remove params from list or change order.
-