| java.lang.Object org.pentaho.core.runtime.SelectionMapper
SelectionMapper | public class SelectionMapper (Code) | | |
Method Summary | |
public static SelectionMapper | create(IPentahoResultSet resultSet, String displayName, String displayStyle) Creates a SelectionMapper based on an IPentahoResultSet. | public static SelectionMapper | create(IPentahoResultSet resultSet, String valueColName, String dispColName, String displayName, String displayStyle) Creates a SelectionMapper based on an IPentahoResultSet. | public static SelectionMapper | create(IPentahoResultSet resultSet, int valueColIndex, int dispColIndex, String displayName, String displayStyle) Creates a SelectionMapper based on an IPentahoResultSet. | public static SelectionMapper | create(IActionParameter actionParam, String valueColName, String dispColName, String displayName, String displayStyle) Creates a SelectionMapper based on an IActionParameter. | public static SelectionMapper | createFromPropMapList(List aList, String valueColName, String dispColName, String displayName, String displayStyle) Creates a SelectionMapper based on a pentaho property map list. | public String | getDisplayStyle() | public String | getSelectionDisplayName() | public String | getSelectionNameForValue(String val) | public Map | getSelectionNameMap() | public List | getSelectionValues() | public String | getValueAt(int index) | public boolean | hasValue(String value) | public int | selectionCount() | public String | toString() |
displayNamedisplayStyle | String displayNamedisplayStyle(Code) | | |
create | public static SelectionMapper create(IPentahoResultSet resultSet, String displayName, String displayStyle)(Code) | | Creates a SelectionMapper based on an IPentahoResultSet. If the result
set has 1 column, the values and display names will come from that
column. If it has more than 1 column, the first column will be used for
the values and the second will be used for the display names
Parameters: resultSet - The result set to get the data from Parameters: displayName - The name used to describe the choice for this selection.Usually used as a header SelectionMapper if successful or null |
create | public static SelectionMapper create(IPentahoResultSet resultSet, String valueColName, String dispColName, String displayName, String displayStyle)(Code) | | Creates a SelectionMapper based on an IPentahoResultSet. The columns to
use for the values and display names are passed in as column names.
Parameters: resultSet - The result set to get the data from Parameters: valueColName - The name of the column to use for the values. If null, thefirst column will be used Parameters: dispColName - The name of the column to use for the display names. If null,the values column will be used Parameters: displayName - The name used to describe the choice for this selection.Usually used as a header SelectionMapper if successful or null |
create | public static SelectionMapper create(IPentahoResultSet resultSet, int valueColIndex, int dispColIndex, String displayName, String displayStyle)(Code) | | Creates a SelectionMapper based on an IPentahoResultSet. The index of the
column to use for the values and display names are passed in. The index
is 1 based so the first (left most) column is 1.
Parameters: resultSet - The result set to get the data from Parameters: valueColName - The index of the column to use for the values. Parameters: dispColName - The index of the column to use for the display names. If 0then the valueColumn will be used. Parameters: displayName - The name used to describe the choice for this selection.Usually used as a header SelectionMapper if successful or null |
create | public static SelectionMapper create(IActionParameter actionParam, String valueColName, String dispColName, String displayName, String displayStyle)(Code) | | Creates a SelectionMapper based on an IActionParameter. The columns to
use for the values and display names are passed in as column names.
Parameters: actionParam - The ActionParameter to get the data from Parameters: valueColName - The name of the column to use for the values. If null, thefirst column will be used Parameters: dispColName - The name of the column to use for the display names. If null,the values column will be used Parameters: displayName - The name used to describe the choice for this selection.Usually used as a header SelectionMapper if successful or null |
createFromPropMapList | public static SelectionMapper createFromPropMapList(List aList, String valueColName, String dispColName, String displayName, String displayStyle)(Code) | | Creates a SelectionMapper based on a pentaho property map list. The index
of the column to use for the values and display names are passed in. The
index is 1 based so the first (left most) column is 1.
Parameters: resultSet - The result set to get the data from Parameters: valueColName - The index of the column to use for the values. Parameters: dispColName - The index of the column to use for the display names. If 0then the valueColumn will be used. Parameters: displayName - The name used to describe the choice for this selection.Usually used as a header SelectionMapper if successful or null |
getSelectionDisplayName | public String getSelectionDisplayName()(Code) | | |
getSelectionNameMap | public Map getSelectionNameMap()(Code) | | |
getSelectionValues | public List getSelectionValues()(Code) | | |
selectionCount | public int selectionCount()(Code) | | |
|
|