Class WriteProcessingCallback
java.lang.Object
de.businesscode.bcdui.binding.write.WriteProcessingCallback
- Direct Known Subclasses:
SecUserTableWriteCallback,SubjectFilterOnWriteCallback,WrsModificationCallback
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendDataRow(WriteProcessingCallback.ROW_TYPE rowType, List<String> cValues, List<String> oValues) is called once WRS row has been read, the implementation may modify data provided, at this point the serverSideValueBean and bindingSet are already initializedvoidendHeader(List<BindingItem> columns, List<Integer> columnTypes, Collection<String> keyColumnNames) is called once WRS header has been read, the implementation may modify either data provided, at this point the serverSideValueBean and bindingSet are already initializedprotected WriteProcessingCallbackParamsprotected ServerSideValueBeanprotected intindexOf(List<BindingItem> columns, String bindingItemId) Get pos of a BindingItem in the list of columnsvoidperform initialization, read params, etc prior to callendHeader(List, List, Collection)orendDataRow(ROW_TYPE, List, List), at this point any other configurations members are already setvoidsetBindingSet(BindingSet bindingSet) set binding-set this instance operates onvoidvoidsetValueBean(ServerSideValueBean valueBean) sets the valuebean
-
Field Details
-
bindingSet
-
-
Constructor Details
-
WriteProcessingCallback
public WriteProcessingCallback()
-
-
Method Details
-
setBindingSet
set binding-set this instance operates on- Parameters:
bindingSet-
-
setParams
-
setValueBean
sets the valuebean- Parameters:
valueBean-
-
getParams
-
initialize
public void initialize()perform initialization, read params, etc prior to callendHeader(List, List, Collection)orendDataRow(ROW_TYPE, List, List), at this point any other configurations members are already set -
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:McValues- list of values of wrs:C columnsoValues- list of values of wrs:O columns- Throws:
Exception
-
indexOf
Get pos of a BindingItem in the list of columns- Parameters:
columns-bindingItemId-- Returns:
-