Stellent
HowToComponents
JavaDoc

intradoc.data
Class SimpleResultSetFilter

java.lang.Object
  |
  +--intradoc.data.SimpleResultSetFilter
All Implemented Interfaces:
ResultSetFilter

public class SimpleResultSetFilter
extends java.lang.Object
implements ResultSetFilter

Filter used to copy rows that match (optionally using wildchars) on a particular column.

See Also:
ResultSetFilter, DataResultSet

Field Summary
 boolean m_isFilterMaxRows
          Indicates whether the result set does max length computation.
 boolean m_isFilterValue
          Indicates whether filter does value matching filtering.
 boolean m_isWildcard
          Indicates whether match should be wildcard case insensitve.
 java.lang.String m_lookupVal
          Look up column.
 int m_maxRows
          Maximum number of rows to copy (if m_filterMaxRows is set).
 
Fields inherited from interface intradoc.data.ResultSetFilter
ABORT, ALLOW, DENY
 
Constructor Summary
SimpleResultSetFilter()
          Constructor
SimpleResultSetFilter(int maxRows)
          Constructor
SimpleResultSetFilter(java.lang.String lookupVal)
          Constructor
 
Method Summary
 int checkRow(java.lang.String val, int curNumRows, java.util.Vector row)
          Checks if the row matches on the column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_isFilterValue

public boolean m_isFilterValue
Indicates whether filter does value matching filtering.


m_lookupVal

public java.lang.String m_lookupVal
Look up column. Used to filter out rows if m_isFilterValue is set.


m_isWildcard

public boolean m_isWildcard
Indicates whether match should be wildcard case insensitve.


m_isFilterMaxRows

public boolean m_isFilterMaxRows
Indicates whether the result set does max length computation.


m_maxRows

public int m_maxRows
Maximum number of rows to copy (if m_filterMaxRows is set).

Constructor Detail

SimpleResultSetFilter

public SimpleResultSetFilter()
Constructor


SimpleResultSetFilter

public SimpleResultSetFilter(java.lang.String lookupVal)
Constructor


SimpleResultSetFilter

public SimpleResultSetFilter(int maxRows)
Constructor

Method Detail

checkRow

public int checkRow(java.lang.String val,
                    int curNumRows,
                    java.util.Vector row)
Checks if the row matches on the column.

Specified by:
checkRow in interface ResultSetFilter
Parameters:
val - As part of the call to performing the copy, one field is specified as the merge key. This parameter holds the value of that field for the current row being evaluated.
curNumRows - The number of rows that have been tested so far.
row - An array of strings containing all the values of all the fields of the source result set in the order found in that result set.
Returns:
One of ABORT, DENY, or ALLOW.


(c) 1996-2005  All rights reserved.  Stellent, Inc.