|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openswing.swing.pivottable.java.InputFilter
Title: OpenSwing Framework
Description: Row filter used within pivot table to skip rows from original data model.
Copyright: Copyright (C) 2006 Mauro Carniel
This file is part of OpenSwing Framework. This library is free software; you can redistribute it and/or modify it under the terms of the (LGPL) Lesser General Public License as published by the Free Software Foundation; GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The author may be contacted at: maurocarniel@tin.it
Field Summary | |
static java.lang.String |
EQ
|
static java.lang.String |
GE
|
static java.lang.String |
GT
|
static java.lang.String |
IS_NOT_NULL
|
static java.lang.String |
IS_NULL
|
static java.lang.String |
LE
|
static java.lang.String |
LT
|
static java.lang.String |
NEQ
|
Constructor Summary | |
InputFilter()
|
Method Summary | |
void |
addEqualsFilter(java.lang.String columnName,
java.lang.Object value)
Add an "equals to" filter condition to input data to analyze. |
void |
addGreaterOrEqualsToFilter(java.lang.String columnName,
java.lang.Object value)
Add an "greater or equals to" filter condition to input data to analyze. |
void |
addGreaterThanFilter(java.lang.String columnName,
java.lang.Object value)
Add an "greater than" filter condition to input data to analyze. |
void |
addIsNotNullFilter(java.lang.String columnName,
java.lang.Object value)
Add an "is NOT null" filter condition to input data to analyze. |
void |
addIsNullFilter(java.lang.String columnName,
java.lang.Object value)
Add an "is null" filter condition to input data to analyze. |
void |
addLessOrEqualsToFilter(java.lang.String columnName,
java.lang.Object value)
Add an "less or equals to" filter condition to input data to analyze. |
void |
addLessThanFilter(java.lang.String columnName,
java.lang.Object value)
Add an "less than" filter condition to input data to analyze. |
void |
addNotEqualsFilter(java.lang.String columnName,
java.lang.Object value)
Add an "NOT equals to" filter condition to input data to analyze. |
java.util.Iterator |
getFilteredColumnNames()
|
java.lang.String |
getWhereClause(java.util.Map attributesMap,
java.util.ArrayList bindVariables)
|
void |
removeFilters(java.lang.String columnName)
Remove filter conditions for the specified column name. |
boolean |
skipRow(java.lang.String columnName,
java.lang.Object value)
Invoked by Reader class to skip rows. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String EQ
public static final java.lang.String NEQ
public static final java.lang.String LT
public static final java.lang.String LE
public static final java.lang.String GT
public static final java.lang.String GE
public static final java.lang.String IS_NULL
public static final java.lang.String IS_NOT_NULL
Constructor Detail |
public InputFilter()
Method Detail |
public final void addEqualsFilter(java.lang.String columnName, java.lang.Object value)
columnName
- column namevalue
- filter valuepublic final void addNotEqualsFilter(java.lang.String columnName, java.lang.Object value)
columnName
- column namevalue
- filter valuepublic final void addIsNullFilter(java.lang.String columnName, java.lang.Object value)
columnName
- column namevalue
- filter valuepublic final void addIsNotNullFilter(java.lang.String columnName, java.lang.Object value)
columnName
- column namevalue
- filter valuepublic final void addLessThanFilter(java.lang.String columnName, java.lang.Object value)
columnName
- column namevalue
- filter valuepublic final void addLessOrEqualsToFilter(java.lang.String columnName, java.lang.Object value)
columnName
- column namevalue
- filter valuepublic final void addGreaterThanFilter(java.lang.String columnName, java.lang.Object value)
columnName
- column namevalue
- filter valuepublic final void addGreaterOrEqualsToFilter(java.lang.String columnName, java.lang.Object value)
columnName
- column namevalue
- filter valuepublic final void removeFilters(java.lang.String columnName)
columnName
- column namepublic final boolean skipRow(java.lang.String columnName, java.lang.Object value)
columnName
- column name under analysisvalue
- current value for the specified column
true
if row must be skipped, false
otherwisepublic final java.util.Iterator getFilteredColumnNames()
public final java.lang.String getWhereClause(java.util.Map attributesMap, java.util.ArrayList bindVariables)
attributesMap
- collection of pairs bindVariables
- list of values binded to "?" variables specified in return WHERE value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |