Class WriteProcessingCallback

java.lang.Object
de.businesscode.bcdui.binding.write.WriteProcessingCallback
Direct Known Subclasses:
SecUserTableWriteCallback, SubjectFilterOnWriteCallback, WrsModificationCallback

public abstract class WriteProcessingCallback extends Object
  • Field Details

  • Constructor Details

    • WriteProcessingCallback

      public WriteProcessingCallback()
  • Method Details

    • setBindingSet

      public void setBindingSet(BindingSet bindingSet)
      set binding-set this instance operates on
      Parameters:
      bindingSet -
    • setParams

      public void setParams(WriteProcessingCallbackParams params)
    • setValueBean

      public void setValueBean(ServerSideValueBean valueBean)
      sets the valuebean
      Parameters:
      valueBean -
    • getParams

      protected WriteProcessingCallbackParams getParams()
    • initialize

      public void initialize()
      perform initialization, read params, etc prior to call endHeader(List, List, Collection) or endDataRow(ROW_TYPE, List, List), at this point any other configurations members are already set
    • getValueBean

      protected ServerSideValueBean getValueBean()
      Returns:
      the value bean for server values, is optional and may be null
    • endHeader

      public void endHeader(List<BindingItem> columns, List<Integer> columnTypes, Collection<String> keyColumnNames) throws Exception
      is called once WRS header has been read, the implementation may modify either data provided, at this point the serverSideValueBean and bindingSet are already initialized
      Parameters:
      columns -
      columnTypes -
      keyColumnNames -
      Throws:
      Exception
    • endDataRow

      public void endDataRow(WriteProcessingCallback.ROW_TYPE rowType, List<String> cValues, List<String> oValues) throws Exception
      is called once WRS row has been read, the implementation may modify data provided, at this point the serverSideValueBean and bindingSet are already initialized
      Parameters:
      rowType - depending on the rowtype cValues and oValues change semantics, i.e: wrs:C in wrs:I vs wrs:C in wrs:M
      cValues - list of values of wrs:C columns
      oValues - list of values of wrs:O columns
      Throws:
      Exception
    • indexOf

      protected int indexOf(List<BindingItem> columns, String bindingItemId)
      Get pos of a BindingItem in the list of columns
      Parameters:
      columns -
      bindingItemId -
      Returns: