Ontimize 5.2072EN

com.ontimize.db.query
Class QueryBuilder.ConditionsTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended bycom.ontimize.db.query.QueryBuilder.ConditionsTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
QueryBuilder

protected static class QueryBuilder.ConditionsTableModel
extends javax.swing.table.AbstractTableModel

See Also:
Serialized Form

Field Summary
static int ANY
           
protected  java.util.List auxcols
           
protected  java.util.List auxtypes
           
static int BOOLEAN
           
protected  java.util.ResourceBundle bundle
           
protected  java.lang.String[] columns
           
static int DATE
           
protected  java.util.ArrayList expressionList
           
protected  SQLStatementBuilder.Expression[] expressions
           
static int NUMBER
           
static int VARCHAR
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
QueryBuilder.ConditionsTableModel(java.util.ResourceBundle bundle)
           
 
Method Summary
protected  void addExpression()
           
protected  void addExpression(SQLStatementBuilder.Expression e)
           
 void addInitExpression(SQLStatementBuilder.Expression e)
           
 void clearExpressionValues()
           
 void doAndBetweenRows(int[] rows)
           
 void doAndNotBetweenRows(int[] rows)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int c)
           
protected  java.util.List getColumnTypes()
           
 SQLStatementBuilder.Expression getExpression(int r)
           
 java.util.List getExpressionsList()
           
 int getRowCount()
           
 SQLStatementBuilder.Operator[] getTypeOperators(int type)
           
 java.lang.Object getValueAt(int r, int c)
           
 boolean isCellEditable(int r, int c)
           
protected  boolean isExpressionOK(int r)
           
protected  boolean isExpressionOK(SQLStatementBuilder.Expression e)
           
protected  boolean isExpressionOKWithoutParameters(int r)
           
protected  boolean isExpressionOKWithoutParameters(SQLStatementBuilder.Expression e)
           
protected  boolean needsExpressionParameters(int r)
           
 void operationBetweenRows(int[] rows, SQLStatementBuilder.Operator op)
           
 void orBetweenRows(int[] rows)
           
 void orNotBetweenRows(int[] rows)
           
 void removeAllExpressions()
           
 void removeRows(int[] rows)
           
protected  void setColumnTypes(java.lang.Object[] auxcols, int[] auxtypes)
           
protected  void setExpressions(java.util.List list)
           
 void setValueAtCustom(java.lang.Object v, int r, int c)
           
 void split(int r)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUMBER

public static final int NUMBER
See Also:
Constant Field Values

DATE

public static final int DATE
See Also:
Constant Field Values

VARCHAR

public static final int VARCHAR
See Also:
Constant Field Values

ANY

public static final int ANY
See Also:
Constant Field Values

BOOLEAN

public static final int BOOLEAN
See Also:
Constant Field Values

expressions

protected SQLStatementBuilder.Expression[] expressions

columns

protected java.lang.String[] columns

expressionList

protected java.util.ArrayList expressionList

auxcols

protected java.util.List auxcols

auxtypes

protected java.util.List auxtypes

bundle

protected java.util.ResourceBundle bundle
Constructor Detail

QueryBuilder.ConditionsTableModel

public QueryBuilder.ConditionsTableModel(java.util.ResourceBundle bundle)
Method Detail

getColumnTypes

protected java.util.List getColumnTypes()

setExpressions

protected void setExpressions(java.util.List list)

setColumnTypes

protected void setColumnTypes(java.lang.Object[] auxcols,
                              int[] auxtypes)

getTypeOperators

public SQLStatementBuilder.Operator[] getTypeOperators(int type)

addExpression

protected void addExpression()

addExpression

protected void addExpression(SQLStatementBuilder.Expression e)

addInitExpression

public void addInitExpression(SQLStatementBuilder.Expression e)

getExpressionsList

public java.util.List getExpressionsList()

clearExpressionValues

public void clearExpressionValues()

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

getColumnName

public java.lang.String getColumnName(int c)

getValueAt

public java.lang.Object getValueAt(int r,
                                   int c)

setValueAtCustom

public void setValueAtCustom(java.lang.Object v,
                             int r,
                             int c)
                      throws java.lang.Exception
Throws:
java.lang.Exception

isCellEditable

public boolean isCellEditable(int r,
                              int c)

getExpression

public SQLStatementBuilder.Expression getExpression(int r)

split

public void split(int r)

operationBetweenRows

public void operationBetweenRows(int[] rows,
                                 SQLStatementBuilder.Operator op)

orBetweenRows

public void orBetweenRows(int[] rows)

doAndBetweenRows

public void doAndBetweenRows(int[] rows)

doAndNotBetweenRows

public void doAndNotBetweenRows(int[] rows)

orNotBetweenRows

public void orNotBetweenRows(int[] rows)

removeRows

public void removeRows(int[] rows)

removeAllExpressions

public void removeAllExpressions()

isExpressionOKWithoutParameters

protected boolean isExpressionOKWithoutParameters(int r)

isExpressionOKWithoutParameters

protected boolean isExpressionOKWithoutParameters(SQLStatementBuilder.Expression e)

isExpressionOK

protected boolean isExpressionOK(int r)

isExpressionOK

protected boolean isExpressionOK(SQLStatementBuilder.Expression e)

needsExpressionParameters

protected boolean needsExpressionParameters(int r)

Ontimize