com.sas.dataselectors.find
Class OLAPFindSelectorAdapter

com.sas.dataselectors.find.OLAPFindSelectorAdapter
All Implemented Interfaces:
FindSelectorInterface

public class OLAPFindSelectorAdapter
implements FindSelectorInterface

Performs member and cell searches on an OLAPDataSetInterface model


Field Summary
static int cellCount
          The default number of cells to retrieve from the model.
protected  java.lang.Object[] cells
           
protected  AxisInterface columnAxis
           
protected  TupleInterface[] columnTuples
           
protected  int currentColumn
           
protected  int currentRow
           
protected  ResultSetInterface resultSet
           
protected  ResultSetMetadataInterface resultSetMetadata
           
protected  AxisInterface rowAxis
           
protected  TupleInterface[] rowTuples
           
protected  OLAPDataSetInterface tableModel
           
 
Fields inherited from interface com.sas.dataselectors.find.FindSelectorInterface
BACKWARD, CELL_VALUES_BY_COLUMN, CELL_VALUES_BY_ROW, COLUMN_AXIS, COLUMN_NUMBER, CONTAINS, EQUAL_TO, ERROR, FORWARD, GOTO, GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO, LIKE, MEMBERS_ON_COLUMNS, MEMBERS_ON_ROWS, NOT_FOUND, ROW_AXIS, ROW_COLUMN_AXIS, ROW_NUMBER, SEARCH_WRAPPED, STARTS_WITH
 
Constructor Summary
OLAPFindSelectorAdapter(OLAPDataSetInterface model)
           
 
Method Summary
 java.util.Map find(java.lang.String type, java.lang.String condition, java.lang.String value, java.lang.String direction)
          Performs searches of member and cell values.
 AxisInterface getColumnAxis()
          Get the column axis
 TupleInterface[] getColumnTuples()
          Get the column tuples array
 int getCurrentColumn()
          Get the viewer current column index
 int getCurrentRow()
          Get the current row index
 ResultSetMetadataInterface getResultSetMetadata()
          Get the resultset metadata
 AxisInterface getRowAxis()
          Get the row axis
 TupleInterface[] getRowTuples()
          Get the row tuples array
 OLAPDataSetInterface getTableModel()
          Get the viewer model
 void setCurrentColumn(int i)
          Set the viewer current column index
 void setCurrentRow(int i)
          Set the viewer current row
 void setTableModel(OLAPDataSetInterface interface1)
          Set the viewer model
 

Field Detail

tableModel

protected OLAPDataSetInterface tableModel

resultSet

protected ResultSetInterface resultSet

resultSetMetadata

protected ResultSetMetadataInterface resultSetMetadata

rowAxis

protected AxisInterface rowAxis

rowTuples

protected TupleInterface[] rowTuples

columnAxis

protected AxisInterface columnAxis

columnTuples

protected TupleInterface[] columnTuples

cells

protected java.lang.Object[] cells

currentRow

protected int currentRow

currentColumn

protected int currentColumn

cellCount

public static int cellCount
The default number of cells to retrieve from the model. If the entire set of cells is retrieved, performance could be very bad, so this number should be reasonable.

Constructor Detail

OLAPFindSelectorAdapter

public OLAPFindSelectorAdapter(OLAPDataSetInterface model)
Method Detail

find

public java.util.Map find(java.lang.String type,
                          java.lang.String condition,
                          java.lang.String value,
                          java.lang.String direction)
                   throws OLAPException
Performs searches of member and cell values.

Specified by:
find in interface FindSelectorInterface
Parameters:
type - The find type
condition - The find condition.
value - The value being searched for
direction - The search direction (forward or backward)
Throws:
OLAPException

getColumnAxis

public AxisInterface getColumnAxis()
Get the column axis

Returns:
the column axis

getColumnTuples

public TupleInterface[] getColumnTuples()
Get the column tuples array

Returns:
the column tuples

getCurrentRow

public int getCurrentRow()
Get the current row index

Returns:
the current row

getResultSetMetadata

public ResultSetMetadataInterface getResultSetMetadata()
Get the resultset metadata

Returns:
the resultset metadata

getRowAxis

public AxisInterface getRowAxis()
Get the row axis

Returns:
the row axis

getRowTuples

public TupleInterface[] getRowTuples()
Get the row tuples array

Returns:
the row tuples

getTableModel

public OLAPDataSetInterface getTableModel()
Get the viewer model

Returns:
the model

setCurrentRow

public void setCurrentRow(int i)
Set the viewer current row

Specified by:
setCurrentRow in interface FindSelectorInterface
Parameters:
i - the viewer current row

setTableModel

public void setTableModel(OLAPDataSetInterface interface1)
Set the viewer model

Parameters:
interface1 - the viewer model

getCurrentColumn

public int getCurrentColumn()
Get the viewer current column index

Returns:
the viewer column

setCurrentColumn

public void setCurrentColumn(int i)
Set the viewer current column index

Specified by:
setCurrentColumn in interface FindSelectorInterface
Parameters:
i - the viewer column



Copyright © 2009 SAS Institute Inc. All Rights Reserved.