Class 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  
    • 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_validation
      void process()
      Go
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • STEP_ID

        public static java.lang.String STEP_ID
    • Constructor Detail

      • Upload2TargetBs

        public Upload2TargetBs​(UploadControl uc,
                               java.lang.String userId)
        Constructor
        Parameters:
        uc -
        userId -
    • Method Detail

      • 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 aliases
        fromList - - may contain params placeholders
        params - - adjacent to fromList; must not remove params from list or change order.