com.infoviz.datamodel.table
Class QuereableIVTableModel

java.lang.Object
  extended bycom.infoviz.datamodel.table.QuereableIVTableModel

public class QuereableIVTableModel
extends java.lang.Object

Provides an interface to query a IVTableModel using SQL like syntax.

$Id$ $Revision$ $Author$


Constructor Summary
QuereableIVTableModel(IVTableModel model)
          creates a quereable table ivTableModel from IVTableModel
 
Method Summary
 IVTableModel getIvTableModel()
           
 IVTableModel select(java.lang.String predicate, java.util.Map bindObjects, java.lang.String[] sortColumns)
          selects from the table, all rows that match the supplied predicate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuereableIVTableModel

public QuereableIVTableModel(IVTableModel model)
creates a quereable table ivTableModel from IVTableModel

Parameters:
model -
Method Detail

select

public IVTableModel select(java.lang.String predicate,
                           java.util.Map bindObjects,
                           java.lang.String[] sortColumns)
selects from the table, all rows that match the supplied predicate

Parameters:
predicate -
bindObjects -
Returns:
a IVTableModel consisting of all rows that satisfy the query
Throws:
java.lang.IllegalArgumentException - under the following conditions:
  • query has bad column names or operators
  • no. of ? does not match no. of values in bindobjects
  • brackets do not match
  • type of object in bindObjects does not match the corresponding type of column

  • getIvTableModel

    public IVTableModel getIvTableModel()