Class WriteProcessingCallback
- java.lang.Object
-
- de.businesscode.bcdui.binding.write.WriteProcessingCallback
-
- Direct Known Subclasses:
SecUserTableWriteCallback
,SubjectFilterOnWriteCallback
,WrsModificationCallback
public abstract class WriteProcessingCallback extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WriteProcessingCallback.ROW_TYPE
-
Field Summary
Fields Modifier and Type Field Description protected BindingSet
bindingSet
-
Constructor Summary
Constructors Constructor Description WriteProcessingCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endDataRow(WriteProcessingCallback.ROW_TYPE rowType, java.util.List<java.lang.String> cValues, java.util.List<java.lang.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 initializedvoid
endHeader(java.util.List<BindingItem> columns, java.util.List<java.lang.Integer> columnTypes, java.util.Collection<java.lang.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 WriteProcessingCallbackParams
getParams()
protected ServerSideValueBean
getValueBean()
protected int
indexOf(java.util.List<BindingItem> columns, java.lang.String bindingItemId)
Get pos of a BindingItem in the list of columnsvoid
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 setvoid
setBindingSet(BindingSet bindingSet)
set binding-set this instance operates onvoid
setParams(WriteProcessingCallbackParams params)
void
setValueBean(ServerSideValueBean valueBean)
sets the valuebean
-
-
-
Field Detail
-
bindingSet
protected BindingSet bindingSet
-
-
Method Detail
-
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 callendHeader(List, List, Collection)
orendDataRow(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(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:McValues
- list of values of wrs:C columnsoValues
- 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:
-
-