Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hsqldb
Class Expression  view Expression download Expression.java

java.lang.Object
  extended byorg.hsqldb.Expression

class Expression
extends java.lang.Object

Expression class declaration

Version:
1.7.0

Field Summary
(package private) static int ADD
           
private  boolean aliasQuoted
           
(package private) static int AND
           
(package private) static int ASTERIX
           
(package private) static int AVG
           
private  boolean bDescending
           
(package private) static int BETWEEN
           
(package private) static int BIGGER
           
(package private) static int BIGGER_EQUAL
           
(package private) static int CASEWHEN
           
(package private) static int CAST
           
private  char cLikeEscape
           
(package private) static int CLOSE
           
(package private) static int COLUMN
           
private  boolean columnQuoted
           
(package private) static int COMMA
           
(package private) static int CONCAT
           
(package private) static int CONVERT
           
(package private) static int COUNT
           
(package private) static int DIST_COUNT
           
(package private) static int DIVIDE
           
private  Expression eArg
           
private  Expression eArg2
           
(package private) static int END
           
(package private) static int EQUAL
           
(package private) static int EXISTS
           
private  Function fFunction
           
(package private) static int FUNCTION
           
private  java.util.Hashtable hList
           
private  boolean hListHasNull
           
private  int iColumn
           
private  int iColumnScale
           
private  int iColumnSize
           
private  int iDataType
           
(package private) static int IFNULL
           
(package private) static int IN
           
(package private) static java.lang.Integer INTEGER_0
           
(package private) static java.lang.Integer INTEGER_1
           
private  boolean isDistinctAggregate
           
private  int iType
           
(package private) static int LIKE
           
(package private) static int MAX
           
(package private) static int MIN
           
(package private) static int MULTIPLY
           
(package private) static int NEGATE
           
(package private) static int NOT
           
(package private) static int NOT_EQUAL
           
private  java.lang.Object oData
           
(package private) static int OPEN
           
(package private) static int OR
           
(package private) static int PLUS
           
(package private) static int QUERY
           
private  java.lang.String sAlias
           
private  java.lang.String sColumn
           
(package private) static int SELECT
           
(package private) static int SMALLER
           
(package private) static int SMALLER_EQUAL
           
private  Select sSelect
           
private  java.lang.String sTable
           
(package private) static int STRINGCONCAT
           
(package private) static int SUBTRACT
           
(package private) static int SUM
           
private  TableFilter tFilter
           
(package private) static int TRUE
           
(package private) static int VALUE
           
(package private) static int VALUELIST
           
 
Constructor Summary
(package private) Expression(Expression e)
          Constructor declaration
(package private) Expression(Function f)
          Constructor declaration
(package private) Expression(int type, Expression e, Expression e2)
          Constructor declaration
(package private) Expression(int datatype, java.lang.Object o)
          Constructor declaration
(package private) Expression(Select s)
          Constructor declaration
(package private) Expression(java.lang.String table, java.lang.String column)
          Constructor declaration
(package private) Expression(java.lang.String table, java.lang.String column, boolean isquoted)
           
(package private) Expression(java.util.Vector v)
          Constructor declaration
 
Method Summary
(package private)  void checkResolved()
          Method declaration
(package private)  java.lang.String getAlias()
          Method declaration
(package private)  Expression getArg()
          Method declaration
(package private)  Expression getArg2()
          Method declaration
(package private)  java.lang.String getColumnName()
          Method declaration
(package private)  int getColumnNr()
          Method declaration
(package private)  int getColumnScale()
          Method declaration
(package private)  int getColumnSize()
          Method declaration
(package private)  int getDataType()
          Method declaration
(package private)  TableFilter getFilter()
          Method declaration
(package private)  java.lang.String getTableName()
          Method declaration
(package private)  int getType()
          Method declaration
(package private)  java.lang.Object getValue()
          Method declaration
(package private)  java.lang.Object getValue(int type)
          Method declaration
(package private)  boolean isAggregate()
          Method declaration
(package private) static boolean isAggregate(int type)
           
(package private)  boolean isAliasQuoted()
          Method declaration
(package private) static boolean isCompare(int i)
          Method declaration
(package private)  boolean isDescending()
          Method declaration
(package private)  boolean isDistinctAggregate()
          Method declaration
(package private)  boolean isResolved()
          Method declaration
(package private)  void resolve(TableFilter f)
          Method declaration
(package private)  void setAlias(java.lang.String s, boolean isquoted)
          Method declaration
(package private)  void setDataType(int type)
          Method declaration
(package private)  void setDescending()
          Method declaration
(package private)  void setDistinctAggregate(boolean type)
          Method declaration
(package private)  void setLikeEscape(char c)
          Method declaration
(package private)  void setTrue()
          Method declaration
(package private)  void swapCondition()
          Method declaration
(package private)  boolean test()
          Method declaration
private  boolean testValueList(java.lang.Object o, int datatype)
          Method declaration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALUE

static final int VALUE
See Also:
Constant Field Values

COLUMN

static final int COLUMN
See Also:
Constant Field Values

QUERY

static final int QUERY
See Also:
Constant Field Values

TRUE

static final int TRUE
See Also:
Constant Field Values

VALUELIST

static final int VALUELIST
See Also:
Constant Field Values

ASTERIX

static final int ASTERIX
See Also:
Constant Field Values

FUNCTION

static final int FUNCTION
See Also:
Constant Field Values

NEGATE

static final int NEGATE
See Also:
Constant Field Values

ADD

static final int ADD
See Also:
Constant Field Values

SUBTRACT

static final int SUBTRACT
See Also:
Constant Field Values

MULTIPLY

static final int MULTIPLY
See Also:
Constant Field Values

DIVIDE

static final int DIVIDE
See Also:
Constant Field Values

CONCAT

static final int CONCAT
See Also:
Constant Field Values

NOT

static final int NOT
See Also:
Constant Field Values

EQUAL

static final int EQUAL
See Also:
Constant Field Values

BIGGER_EQUAL

static final int BIGGER_EQUAL
See Also:
Constant Field Values

BIGGER

static final int BIGGER
See Also:
Constant Field Values

SMALLER

static final int SMALLER
See Also:
Constant Field Values

SMALLER_EQUAL

static final int SMALLER_EQUAL
See Also:
Constant Field Values

NOT_EQUAL

static final int NOT_EQUAL
See Also:
Constant Field Values

LIKE

static final int LIKE
See Also:
Constant Field Values

AND

static final int AND
See Also:
Constant Field Values

OR

static final int OR
See Also:
Constant Field Values

IN

static final int IN
See Also:
Constant Field Values

EXISTS

static final int EXISTS
See Also:
Constant Field Values

COUNT

static final int COUNT
See Also:
Constant Field Values

SUM

static final int SUM
See Also:
Constant Field Values

MIN

static final int MIN
See Also:
Constant Field Values

MAX

static final int MAX
See Also:
Constant Field Values

AVG

static final int AVG
See Also:
Constant Field Values

DIST_COUNT

static final int DIST_COUNT
See Also:
Constant Field Values

IFNULL

static final int IFNULL
See Also:
Constant Field Values

CONVERT

static final int CONVERT
See Also:
Constant Field Values

CASEWHEN

static final int CASEWHEN
See Also:
Constant Field Values

PLUS

static final int PLUS
See Also:
Constant Field Values

OPEN

static final int OPEN
See Also:
Constant Field Values

CLOSE

static final int CLOSE
See Also:
Constant Field Values

SELECT

static final int SELECT
See Also:
Constant Field Values

COMMA

static final int COMMA
See Also:
Constant Field Values

STRINGCONCAT

static final int STRINGCONCAT
See Also:
Constant Field Values

BETWEEN

static final int BETWEEN
See Also:
Constant Field Values

CAST

static final int CAST
See Also:
Constant Field Values

END

static final int END
See Also:
Constant Field Values

iType

private int iType

eArg

private Expression eArg

eArg2

private Expression eArg2

oData

private java.lang.Object oData

hList

private java.util.Hashtable hList

hListHasNull

private boolean hListHasNull

iDataType

private int iDataType

sSelect

private Select sSelect

fFunction

private Function fFunction

cLikeEscape

private char cLikeEscape

sTable

private java.lang.String sTable

sColumn

private java.lang.String sColumn

tFilter

private TableFilter tFilter

iColumn

private int iColumn

columnQuoted

private boolean columnQuoted

iColumnSize

private int iColumnSize

iColumnScale

private int iColumnScale

sAlias

private java.lang.String sAlias

aliasQuoted

private boolean aliasQuoted

bDescending

private boolean bDescending

isDistinctAggregate

private boolean isDistinctAggregate

INTEGER_0

static final java.lang.Integer INTEGER_0

INTEGER_1

static final java.lang.Integer INTEGER_1
Constructor Detail

Expression

Expression(Function f)
Constructor declaration


Expression

Expression(Expression e)
Constructor declaration


Expression

Expression(Select s)
Constructor declaration


Expression

Expression(java.util.Vector v)
Constructor declaration


Expression

Expression(int type,
           Expression e,
           Expression e2)
Constructor declaration


Expression

Expression(java.lang.String table,
           java.lang.String column)
Constructor declaration


Expression

Expression(java.lang.String table,
           java.lang.String column,
           boolean isquoted)

Expression

Expression(int datatype,
           java.lang.Object o)
Constructor declaration

Method Detail

setLikeEscape

void setLikeEscape(char c)
Method declaration


setDataType

void setDataType(int type)
Method declaration


setTrue

void setTrue()
Method declaration


isAggregate

boolean isAggregate()
Method declaration


isAggregate

static boolean isAggregate(int type)

setDescending

void setDescending()
Method declaration


isDescending

boolean isDescending()
Method declaration


setAlias

void setAlias(java.lang.String s,
              boolean isquoted)
Method declaration


getAlias

java.lang.String getAlias()
Method declaration


isAliasQuoted

boolean isAliasQuoted()
Method declaration


getType

int getType()
Method declaration


getArg

Expression getArg()
Method declaration


getArg2

Expression getArg2()
Method declaration


getFilter

TableFilter getFilter()
Method declaration


checkResolved

void checkResolved()
             throws java.sql.SQLException
Method declaration


resolve

void resolve(TableFilter f)
       throws java.sql.SQLException
Method declaration


isResolved

boolean isResolved()
Method declaration


isCompare

static boolean isCompare(int i)
Method declaration


getTableName

java.lang.String getTableName()
Method declaration


getColumnName

java.lang.String getColumnName()
Method declaration


getColumnNr

int getColumnNr()
Method declaration


getColumnSize

int getColumnSize()
Method declaration


getColumnScale

int getColumnScale()
Method declaration


isDistinctAggregate

boolean isDistinctAggregate()
Method declaration


setDistinctAggregate

void setDistinctAggregate(boolean type)
Method declaration


swapCondition

void swapCondition()
             throws java.sql.SQLException
Method declaration


getDataType

int getDataType()
Method declaration


getValue

java.lang.Object getValue(int type)
                    throws java.sql.SQLException
Method declaration


getValue

java.lang.Object getValue()
                    throws java.sql.SQLException
Method declaration


test

boolean test()
       throws java.sql.SQLException
Method declaration


testValueList

private boolean testValueList(java.lang.Object o,
                              int datatype)
                       throws java.sql.SQLException
Method declaration