Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.table.db
Class DefaultPivotTableModel.SQLFilterPivotConverter

java.lang.Object
  extended by com.sciapp.table.db.SQLFilterConverter
      extended by com.sciapp.table.db.DefaultPivotTableModel.SQLFilterPivotConverter
Enclosing class:
DefaultPivotTableModel

public class DefaultPivotTableModel.SQLFilterPivotConverter
extends SQLFilterConverter

SQLFilterConverter should take care of pivot columns.


Field Summary
 
Fields inherited from class com.sciapp.table.db.SQLFilterConverter
holder
 
Constructor Summary
DefaultPivotTableModel.SQLFilterPivotConverter()
          Constructs an SQLFilterPivotConverter.
 
Method Summary
 String convert(TableFilter tableFilter, DatabaseTableDefinition model, boolean place)
          Converts the supplied table filter into an SQL where clause.
 
Methods inherited from class com.sciapp.table.db.SQLFilterConverter
convert, convert, convertBoolean, convertComparison, convertString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPivotTableModel.SQLFilterPivotConverter

public DefaultPivotTableModel.SQLFilterPivotConverter()
Constructs an SQLFilterPivotConverter.

Method Detail

convert

public String convert(TableFilter tableFilter,
                      DatabaseTableDefinition model,
                      boolean place)
Converts the supplied table filter into an SQL where clause.

Overrides:
convert in class SQLFilterConverter
Parameters:
tableFilter - the table filter to convert
model - the database definition to use to find out the column names
place - if true, converter will use placeholders (?), otherwise the filter's value
Returns:
the SQL string

Copyright © 2005 Scientific Applications. All Rights Reserved.