Class WriteProcessingCallback

    • Constructor Detail

      • WriteProcessingCallback

        public WriteProcessingCallback()
    • Method Detail

      • setBindingSet

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

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

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

        public void endHeader​(java.util.List<BindingItem> columns,
                              java.util.List<java.lang.Integer> columnTypes,
                              java.util.Collection<java.lang.String> keyColumnNames)
                       throws java.lang.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:
        java.lang.Exception
      • endDataRow

        public void endDataRow​(WriteProcessingCallback.ROW_TYPE rowType,
                               java.util.List<java.lang.String> cValues,
                               java.util.List<java.lang.String> oValues)
                        throws java.lang.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:
        java.lang.Exception
      • indexOf

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