|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.platform.engine.services.runtime.SelectionMapper
public class SelectionMapper
| Method Summary | |
|---|---|
static SelectionMapper |
create(IActionParameter actionParam,
java.lang.String valueColName,
java.lang.String dispColName,
java.lang.String displayName,
java.lang.String displayStyle)
Creates a SelectionMapper based on an IActionParameter. |
static SelectionMapper |
create(org.pentaho.commons.connection.IPentahoResultSet resultSet,
int valueColIndex,
int dispColIndex,
java.lang.String displayName,
java.lang.String displayStyle)
Creates a SelectionMapper based on an IPentahoResultSet. |
static SelectionMapper |
create(org.pentaho.commons.connection.IPentahoResultSet resultSet,
java.lang.String displayName,
java.lang.String displayStyle)
Creates a SelectionMapper based on an IPentahoResultSet. |
static SelectionMapper |
create(org.pentaho.commons.connection.IPentahoResultSet resultSet,
java.lang.String valueColName,
java.lang.String dispColName,
java.lang.String displayName,
java.lang.String displayStyle)
Creates a SelectionMapper based on an IPentahoResultSet. |
static SelectionMapper |
createFromPropMapList(java.util.List aList,
java.lang.String valueColName,
java.lang.String dispColName,
java.lang.String displayName,
java.lang.String displayStyle)
Creates a SelectionMapper based on a pentaho property map list. |
java.lang.String |
getDisplayStyle()
|
java.lang.String |
getSelectionDisplayName()
|
java.lang.String |
getSelectionNameForValue(java.lang.String val)
|
java.util.Map |
getSelectionNameMap()
|
java.util.List |
getSelectionValues()
|
java.lang.String |
getValueAt(int index)
|
boolean |
hasValue(java.lang.String value)
|
int |
selectionCount()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static SelectionMapper create(org.pentaho.commons.connection.IPentahoResultSet resultSet,
java.lang.String displayName,
java.lang.String displayStyle)
resultSet - The result set to get the data fromdisplayName - The name used to describe the choice for this selection.
Usually used as a header
public static SelectionMapper create(org.pentaho.commons.connection.IPentahoResultSet resultSet,
java.lang.String valueColName,
java.lang.String dispColName,
java.lang.String displayName,
java.lang.String displayStyle)
resultSet - The result set to get the data fromvalueColName - The name of the column to use for the values. If null, the
first column will be useddispColName - The name of the column to use for the display names. If null,
the values column will be useddisplayName - The name used to describe the choice for this selection.
Usually used as a header
public static SelectionMapper create(org.pentaho.commons.connection.IPentahoResultSet resultSet,
int valueColIndex,
int dispColIndex,
java.lang.String displayName,
java.lang.String displayStyle)
resultSet - The result set to get the data fromvalueColName - The index of the column to use for the values.dispColName - The index of the column to use for the display names. If 0
then the valueColumn will be used.displayName - The name used to describe the choice for this selection.
Usually used as a header
public static SelectionMapper create(IActionParameter actionParam,
java.lang.String valueColName,
java.lang.String dispColName,
java.lang.String displayName,
java.lang.String displayStyle)
actionParam - The ActionParameter to get the data fromvalueColName - The name of the column to use for the values. If null, the
first column will be useddispColName - The name of the column to use for the display names. If null,
the values column will be useddisplayName - The name used to describe the choice for this selection.
Usually used as a header
public static SelectionMapper createFromPropMapList(java.util.List aList,
java.lang.String valueColName,
java.lang.String dispColName,
java.lang.String displayName,
java.lang.String displayStyle)
resultSet - The result set to get the data fromvalueColName - The index of the column to use for the values.dispColName - The index of the column to use for the display names. If 0
then the valueColumn will be used.displayName - The name used to describe the choice for this selection.
Usually used as a header
public java.lang.String getDisplayStyle()
getDisplayStyle in interface ISelectionMapperpublic java.lang.String getSelectionDisplayName()
getSelectionDisplayName in interface ISelectionMapperpublic java.lang.String getSelectionNameForValue(java.lang.String val)
getSelectionNameForValue in interface ISelectionMapperpublic java.util.List getSelectionValues()
getSelectionValues in interface ISelectionMapperpublic java.util.Map getSelectionNameMap()
getSelectionNameMap in interface ISelectionMapperpublic boolean hasValue(java.lang.String value)
hasValue in interface ISelectionMapperpublic int selectionCount()
selectionCount in interface ISelectionMapperpublic java.lang.String getValueAt(int index)
getValueAt in interface ISelectionMapperpublic java.lang.String toString()
toString in interface ISelectionMappertoString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||