Class Upload2TargetBs
- java.lang.Object
-
- de.businesscode.bcdui.upload.data.steps.Upload2TargetBs
-
- All Implemented Interfaces:
IUploadStep
public class Upload2TargetBs extends java.lang.Object implements 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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
STEP_ID
-
Constructor Summary
Constructors Constructor Description Upload2TargetBs(UploadControl uc, java.lang.String userId)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
extend(java.lang.StringBuilder insList, java.lang.StringBuilder fromList, java.util.List<java.lang.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_validationvoid
process()
Go-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.businesscode.bcdui.upload.data.steps.IUploadStep
setParams
-
-
-
-
Constructor Detail
-
Upload2TargetBs
public Upload2TargetBs(UploadControl uc, java.lang.String userId)
Constructor- Parameters:
uc
-userId
-
-
-
Method Detail
-
process
public void process() throws java.sql.SQLException, java.io.IOException, UploadException
Go- Specified by:
process
in interfaceIUploadStep
- Throws:
java.lang.Exception
java.sql.SQLException
java.io.IOException
UploadException
-
extend
protected void extend(java.lang.StringBuilder insList, java.lang.StringBuilder fromList, java.util.List<java.lang.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_validation- Parameters:
insList
- - must not contain aliasesfromList
- - may contain params placeholdersparams
- - adjacent to fromList; must not remove params from list or change order.
-
-