Java Doc for Expression.java in  » Database-DBMS » hsql » org » hsqldb » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » hsql » org.hsqldb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.hsqldb.Expression

Expression
public class Expression (Code)

Inner Class :static class Collector extends HashSet

Field Summary
final static  intASFORFROMBOTHLEADINGTRAILINGYEARMONTHDAYHOURMINUTESECONDTIMEZONE_HOURT_TIMEZONE_MINUTEDOW
    
final static  intCOUNTSUMMINMAXAVGEVERYSOMESTDDEV_POPSTDDEV_SAMPVAR_POPVAR_SAMP
    
final static  intIFNULLCONVERTCASEWHENEXTRACTPOSITIONTRIMSUBSTRINGNULLIFCASECOALESCEALTERNATIVESEQUENCE
    
final static  IntegerINTEGER_0
    
final static  IntegerINTEGER_1
    
final static  intNEGATEADDSUBTRACTMULTIPLYDIVIDECONCAT
    
final static  intNOTEQUALBIGGER_EQUALBIGGERSMALLERSMALLER_EQUALNOT_EQUALLIKEANDORINEXISTSALLANYIS_NULL
    
final static  intNO_NULLS
    
final static  intNULLABLE
    
final static  intNULLABLE_UNKNOWN
    
final static  intPARAM
    
final public static  intPARAM_IN
    
final public static  intPARAM_IN_OUT
    
final public static  intPARAM_OUT
    
final static  intPARAM_UNKNOWN
    
final static  intPLUSOPENCLOSESELECTCOMMABETWEENCASTENDISWHENTHENELSEENDWHENDISTINCTVIEW
    
final static  HashSetSQL_EXTRACT_FIELD_NAMES
    
final static  HashSetSQL_TRIM_SPECIFICATION
    
final static  intVALUECOLUMNQUERYTRUEFALSEVALUELISTASTERISKFUNCTIONLIMITROW
    
 ExpressioneArgeArg2
    
 intexprType
    
 Functionfunction
    
 HashSethList
    
 booleanisDistinctAggregate
    
 booleanisIdentity
    
 booleanisInJoin
    
 booleanisQueryCorrelated
    
 booleanisWritable
    
 intjoinedTableColumnIndex
    
 intnullability
    
 intoldIType
    
 TableFilterouterFilter
    
 intparamMode
    
 SubQuerysubQuery
    
 StringvalueClassName
    
 ObjectvalueData
    
 Expression[]valueList
    

Constructor Summary
 Expression(boolean b)
    
 Expression(Function f)
    
 Expression(NumberSequence sequence)
    
 Expression(Expression e)
     Copy Constructor.
 Expression(SubQuery sq)
    
 Expression(Expression[] valueList)
    
 Expression(int type, Expression e, Expression e2)
    
 Expression(Expression e, int dataType, int precision, int scale)
    
 Expression(Expression e, Expression e2, Character escape, boolean hasCollation)
    
 Expression(String schema, String table, String column)
    
 Expression(String table, String column, boolean isquoted)
    
 Expression(TableFilter filter, Column column)
    
 Expression(int datatype, Object o)
    
 Expression(int datatype, Object o, boolean isParam)
    

Method Summary
 voidbind(Object o)
    
 booleancanBeInAggregate()
     Check if this expression can be included as a result column in an aggregated select statement.
 booleancanBeInGroupBy()
     Check if this expression can be included in a group by clause.
 booleancanBeInOrderBy()
     Check if this expression can be included in an order by clause.
 booleancheckResolved(boolean check)
     Final check for all expressions.
 voidcheckTables(HsqlArrayList filters)
     Resolve the table names for columns and throws if a column remains unresolved.
 voidcollectAllColumnNames(HashSet columnNames)
     Collect all column names used in this expression or any of nested expression.
 booleancollectColumnName(HashSet columnNames)
     Collect column name used in this expression.
 voidcollectInGroupByExpressions(HsqlArrayList colExps)
     Collects all expressions that must be in the GROUP BY clause, for a grouped select statement.
public  Stringdescribe(Session session)
    
static  booleanequals(Object o1, Object o2)
    
static  booleanequals(Expression[] ae1, Expression[] ae2)
    
 TableFilterfindTableFilter(TableFilter[] list)
    
 ObjectgetAggregatedValue(Session session, Object currValue)
    
 StringgetAlias()
    
 ExpressiongetArg()
    
 ExpressiongetArg2()
    
 StringgetBaseColumnName()
    
 intgetCaseWhenType(Session session)
     For CASE WHEN and its special cases section 9.3 of the SQL standard on type aggregation should be implemented.
static  SelectgetCheckSelect(Session session, Table t, Expression e)
     Returns a Select object that can be used for checking the contents of an existing table against the given CHECK search condition.
 StringgetColumnDDL()
     returns the complete name of the column represented by the expression If an alias is known for the column's table, this alias will precede the column name, except it's "SYSTEM_SUBQUERY".
 StringgetColumnName()
    
 intgetColumnNr()
    
 intgetColumnScale()
    
 intgetColumnSize()
    
static  StringgetContextDDL(Expression expression)
    
 StringgetDDL()
     For use with CHECK constraints.
 intgetDataType()
    
 StringgetDefinedAlias()
    
 voidgetEquiJoinColumns(TableFilter filter, boolean[] columns, Expression[] elist)
    
 ExpressiongetExpressionForAlias(Expression[] columns, int length)
    
 TableFiltergetFilter()
    
 StringgetFilterTableName()
    
 ExpressiongetRightExpression()
     Gets the right leaf.
 HsqlNamegetTableHsqlName()
    
 StringgetTableName()
    
 StringgetTableSchemaName()
    
 intgetType()
    
 ObjectgetValue(Session session, int type)
    
 ObjectgetValue(Session session)
    
 StringgetValueClassName()
    
 booleanisAggregate()
    
static  booleanisAggregate(int type)
    
 booleanisAliasQuoted()
    
static  booleanisCompare(int i)
    
 booleanisConditional()
     Checks for conditional expression.
 booleanisConstant()
     Check if this expression defines a constant value.
 booleanisDescending()
    
 booleanisFixedConditional()
    
 booleanisFixedConstant()
    
 booleanisParam()
    
 booleanisResolved()
    
 booleanisSelfAggregate()
    
 booleanisTypeEqual(Expression other)
    
 voidreplaceAliases(Expression[] columns, int length)
    
 voidresolveTables(TableFilter f)
    
 voidresolveTypeForIn(Session session)
     Parametric or fixed value lists plus queries are handled.
 voidresolveTypeForLike(Session session)
    
 voidresolveTypes(Session session)
    
 voidsetAlias(String s, boolean isquoted)
    
 voidsetColumnName(String newname, boolean isquoted)
    
 voidsetDataType(int type)
    
 voidsetDescending()
    
 voidsetDistinctAggregate(boolean distinct)
    
 booleansetForJoin(TableFilter tf, boolean outer)
     Marks all the expressions in the tree for a condition that is part of a JOIN ..
 voidsetLeftExpression(Expression e)
     Sets the left leaf.
 voidsetLikeOptimised()
     Workaround for CHECK constraints.
 voidsetNull()
    
 voidsetRightExpression(Expression e)
    
 voidsetTableColumnAttributes(Expression e)
    
 voidsetTableColumnAttributes(Table t, int i)
    
 voidsetTableName(String newname)
    
 voidsetTrue()
    
public  booleansimilarTo(Expression exp)
     Check if the given expression defines similar operation as this expression.
static  booleansimilarTo(Expression e1, Expression e2)
    
 voidswapCondition()
    
 Booleantest(Session session)
    
 booleantestCondition(Session session)
    
 ObjectupdateAggregatingValue(Session session, Object currValue)
    

Field Detail
ASFORFROMBOTHLEADINGTRAILINGYEARMONTHDAYHOURMINUTESECONDTIMEZONE_HOURT_TIMEZONE_MINUTEDOW
final static int ASFORFROMBOTHLEADINGTRAILINGYEARMONTHDAYHOURMINUTESECONDTIMEZONE_HOURT_TIMEZONE_MINUTEDOW(Code)



COUNTSUMMINMAXAVGEVERYSOMESTDDEV_POPSTDDEV_SAMPVAR_POPVAR_SAMP
final static int COUNTSUMMINMAXAVGEVERYSOMESTDDEV_POPSTDDEV_SAMPVAR_POPVAR_SAMP(Code)



IFNULLCONVERTCASEWHENEXTRACTPOSITIONTRIMSUBSTRINGNULLIFCASECOALESCEALTERNATIVESEQUENCE
final static int IFNULLCONVERTCASEWHENEXTRACTPOSITIONTRIMSUBSTRINGNULLIFCASECOALESCEALTERNATIVESEQUENCE(Code)



INTEGER_0
final static Integer INTEGER_0(Code)



INTEGER_1
final static Integer INTEGER_1(Code)



NEGATEADDSUBTRACTMULTIPLYDIVIDECONCAT
final static int NEGATEADDSUBTRACTMULTIPLYDIVIDECONCAT(Code)



NOTEQUALBIGGER_EQUALBIGGERSMALLERSMALLER_EQUALNOT_EQUALLIKEANDORINEXISTSALLANYIS_NULL
final static int NOTEQUALBIGGER_EQUALBIGGERSMALLERSMALLER_EQUALNOT_EQUALLIKEANDORINEXISTSALLANYIS_NULL(Code)



NO_NULLS
final static int NO_NULLS(Code)



NULLABLE
final static int NULLABLE(Code)



NULLABLE_UNKNOWN
final static int NULLABLE_UNKNOWN(Code)



PARAM
final static int PARAM(Code)



PARAM_IN
final public static int PARAM_IN(Code)



PARAM_IN_OUT
final public static int PARAM_IN_OUT(Code)



PARAM_OUT
final public static int PARAM_OUT(Code)



PARAM_UNKNOWN
final static int PARAM_UNKNOWN(Code)



PLUSOPENCLOSESELECTCOMMABETWEENCASTENDISWHENTHENELSEENDWHENDISTINCTVIEW
final static int PLUSOPENCLOSESELECTCOMMABETWEENCASTENDISWHENTHENELSEENDWHENDISTINCTVIEW(Code)



SQL_EXTRACT_FIELD_NAMES
final static HashSet SQL_EXTRACT_FIELD_NAMES(Code)



SQL_TRIM_SPECIFICATION
final static HashSet SQL_TRIM_SPECIFICATION(Code)



VALUECOLUMNQUERYTRUEFALSEVALUELISTASTERISKFUNCTIONLIMITROW
final static int VALUECOLUMNQUERYTRUEFALSEVALUELISTASTERISKFUNCTIONLIMITROW(Code)



eArgeArg2
Expression eArgeArg2(Code)



exprType
int exprType(Code)



function
Function function(Code)



hList
HashSet hList(Code)



isDistinctAggregate
boolean isDistinctAggregate(Code)



isIdentity
boolean isIdentity(Code)



isInJoin
boolean isInJoin(Code)



isQueryCorrelated
boolean isQueryCorrelated(Code)



isWritable
boolean isWritable(Code)



joinedTableColumnIndex
int joinedTableColumnIndex(Code)



nullability
int nullability(Code)



oldIType
int oldIType(Code)



outerFilter
TableFilter outerFilter(Code)



paramMode
int paramMode(Code)



subQuery
SubQuery subQuery(Code)



valueClassName
String valueClassName(Code)



valueData
Object valueData(Code)



valueList
Expression[] valueList(Code)




Constructor Detail
Expression
Expression(boolean b)(Code)
Creates a new boolean expression
Parameters:
  b - boolean constant



Expression
Expression(Function f)(Code)
Creates a new FUNCTION expression
Parameters:
  f - function



Expression
Expression(NumberSequence sequence)(Code)
Creates a new SEQUENCE expression
Parameters:
  sequence - number sequence



Expression
Expression(Expression e)(Code)
Copy Constructor. Used by TableFilter to move a condition to a filter.
Parameters:
  e - source expression



Expression
Expression(SubQuery sq)(Code)
Creates a new QUERY expression
Parameters:
  sq - subquery



Expression
Expression(Expression[] valueList)(Code)
Creates a new VALUELIST expression
Parameters:
  valueList - array of Expression



Expression
Expression(int type, Expression e, Expression e2)(Code)
Creates a new binary (or unary) operation expression
Parameters:
  type - operator type
Parameters:
  e - operand 1
Parameters:
  e2 - operand 2



Expression
Expression(Expression e, int dataType, int precision, int scale)(Code)
creates a CONVERT expression



Expression
Expression(Expression e, Expression e2, Character escape, boolean hasCollation)(Code)
Creates a new LIKE expression
Parameters:
  e - operand 1
Parameters:
  e2 - operand 2
Parameters:
  escape - escape character



Expression
Expression(String schema, String table, String column)(Code)
Creates a new ASTERISK or COLUMN expression
Parameters:
  table - table
Parameters:
  column - column



Expression
Expression(String table, String column, boolean isquoted)(Code)
Creates a new ASTERIX or possibly quoted COLUMN expression
Parameters:
  table - table
Parameters:
  column - column name
Parameters:
  isquoted - boolean



Expression
Expression(TableFilter filter, Column column)(Code)



Expression
Expression(int datatype, Object o)(Code)
Creates a new VALUE expression
Parameters:
  datatype - data type
Parameters:
  o - data



Expression
Expression(int datatype, Object o, boolean isParam)(Code)
Creates a new (possibly PARAM) VALUE expression
Parameters:
  datatype - initial datatype
Parameters:
  o - initial value
Parameters:
  isParam - true if this is to be a PARAM VALUE expression




Method Detail
bind
void bind(Object o)(Code)



canBeInAggregate
boolean canBeInAggregate()(Code)
Check if this expression can be included as a result column in an aggregated select statement.

It can, if itself is an aggregate expression, or it results a constant value. boolean




canBeInGroupBy
boolean canBeInGroupBy()(Code)
Check if this expression can be included in a group by clause.

It can, if itself is a column expression, and it is not an aggregate expression. boolean




canBeInOrderBy
boolean canBeInOrderBy()(Code)
Check if this expression can be included in an order by clause.

It can, if itself is a column expression. boolean




checkResolved
boolean checkResolved(boolean check) throws HsqlException(Code)
Final check for all expressions.
Parameters:
  check - boolean boolean
throws:
  HsqlException -



checkTables
void checkTables(HsqlArrayList filters) throws HsqlException(Code)
Resolve the table names for columns and throws if a column remains unresolved.
Parameters:
  filters - list of filters
throws:
  HsqlException -



collectAllColumnNames
void collectAllColumnNames(HashSet columnNames)(Code)
Collect all column names used in this expression or any of nested expression.
Parameters:
  columnNames - set to be filled



collectColumnName
boolean collectColumnName(HashSet columnNames)(Code)
Collect column name used in this expression.
Parameters:
  columnNames - set to be filled true if a column name is used in this expression



collectInGroupByExpressions
void collectInGroupByExpressions(HsqlArrayList colExps)(Code)
Collects all expressions that must be in the GROUP BY clause, for a grouped select statement.
Parameters:
  colExps - expression list



describe
public String describe(Session session)(Code)



equals
static boolean equals(Object o1, Object o2)(Code)



equals
static boolean equals(Expression[] ae1, Expression[] ae2)(Code)



findTableFilter
TableFilter findTableFilter(TableFilter[] list)(Code)
Find a table filter with the given table alias



getAggregatedValue
Object getAggregatedValue(Session session, Object currValue) throws HsqlException(Code)
Get the result of a SetFunction or an ordinary value
Parameters:
  currValue - instance of set function or value
Parameters:
  session - context object
throws:
  HsqlException -



getAlias
String getAlias()(Code)
Get the column alias alias



getArg
Expression getArg()(Code)
Returns the left node argument



getArg2
Expression getArg2()(Code)
Returns the right node argument



getBaseColumnName
String getBaseColumnName()(Code)
Returns the name of a column as string column name



getCaseWhenType
int getCaseWhenType(Session session) throws HsqlException(Code)
For CASE WHEN and its special cases section 9.3 of the SQL standard on type aggregation should be implemented.



getCheckSelect
static Select getCheckSelect(Session session, Table t, Expression e) throws HsqlException(Code)
Returns a Select object that can be used for checking the contents of an existing table against the given CHECK search condition.
Parameters:
  t - table
Parameters:
  e - expression select object
throws:
  HsqlException -



getColumnDDL
String getColumnDDL() throws HsqlException(Code)
returns the complete name of the column represented by the expression If an alias is known for the column's table, this alias will precede the column name, except it's "SYSTEM_SUBQUERY". If no alias is known, the column's table will be asked for its statementName, which then will precede the column name.



getColumnName
String getColumnName()(Code)
Returns the name of a column as string column name



getColumnNr
int getColumnNr()(Code)
Returns the column index in the table column index



getColumnScale
int getColumnScale()(Code)
Returns the column scale scale



getColumnSize
int getColumnSize()(Code)
Returns the column size size



getContextDDL
static String getContextDDL(Expression expression) throws HsqlException(Code)



getDDL
String getDDL() throws HsqlException(Code)
For use with CHECK constraints. Under development. Currently supports a subset of expressions and is suitable for CHECK search conditions that refer only to the inserted/updated row. For full DDL reporting of VIEW select queries and CHECK search conditions, future improvements here are dependent upon improvements to SELECT query parsing, so that it is performed in a number of passes. An early pass should result in the query turned into an Expression tree that contains the information in the original SQL without any alterations, and with tables and columns all resolved. This Expression can then be preserved for future use. Table and column names that are not user-defined aliases should be kept as the HsqlName structures so that table or column renaming is reflected in the precompiled query. DDL
throws:
  HsqlException -



getDataType
int getDataType()(Code)
Returns the data type type



getDefinedAlias
String getDefinedAlias()(Code)
Return the user defined alias or null if none alias



getEquiJoinColumns
void getEquiJoinColumns(TableFilter filter, boolean[] columns, Expression[] elist)(Code)
set boolean flags and expressions for columns in a join
Parameters:
  filter - target table filter
Parameters:
  columns - boolean array
Parameters:
  elist - expression list



getExpressionForAlias
Expression getExpressionForAlias(Expression[] columns, int length)(Code)
return the expression for an aliases



getFilter
TableFilter getFilter()(Code)
Returns the table filter for a COLUMN expression table filter



getFilterTableName
String getFilterTableName()(Code)
Returns the table name for a column expression as a string table name



getRightExpression
Expression getRightExpression()(Code)
Gets the right leaf. expression



getTableHsqlName
HsqlName getTableHsqlName()(Code)
Returns the HsqlName of the table for a column expression table name



getTableName
String getTableName()(Code)
Returns the table name for a column expression as a string table name



getTableSchemaName
String getTableSchemaName()(Code)



getType
int getType()(Code)
Returns the type of expression type



getValue
Object getValue(Session session, int type) throws HsqlException(Code)
Get the value in the given type in the given session context
Parameters:
  type - returned type
Parameters:
  session - context value
throws:
  HsqlException -



getValue
Object getValue(Session session) throws HsqlException(Code)



getValueClassName
String getValueClassName()(Code)



isAggregate
boolean isAggregate()(Code)
Is this (indirectly) an aggregate expression boolean



isAggregate
static boolean isAggregate(int type)(Code)



isAliasQuoted
boolean isAliasQuoted()(Code)
Is a column alias quoted boolean



isCompare
static boolean isCompare(int i)(Code)
Is the argument expression type a comparison expression
Parameters:
  i - expresion type boolean



isConditional
boolean isConditional()(Code)
Checks for conditional expression. boolean



isConstant
boolean isConstant()(Code)
Check if this expression defines a constant value.

It does, if it is a constant value expression, or all the argument expressions define constant values. boolean




isDescending
boolean isDescending()(Code)
Is an ORDER BY column expression DESC boolean



isFixedConditional
boolean isFixedConditional()(Code)



isFixedConstant
boolean isFixedConstant()(Code)



isParam
boolean isParam()(Code)



isResolved
boolean isResolved()(Code)
Has this expression been resolved boolean



isSelfAggregate
boolean isSelfAggregate()(Code)
Is this directly an aggregate expression boolean



isTypeEqual
boolean isTypeEqual(Expression other)(Code)



replaceAliases
void replaceAliases(Expression[] columns, int length) throws HsqlException(Code)
Replace aliases with expression trees



resolveTables
void resolveTables(TableFilter f) throws HsqlException(Code)
Resolve the table names for columns
Parameters:
  f - table filter
throws:
  HsqlException -



resolveTypeForIn
void resolveTypeForIn(Session session) throws HsqlException(Code)
Parametric or fixed value lists plus queries are handled. Empty lists are not allowed. Parametric predicand is resolved against the value list and vice versa.



resolveTypeForLike
void resolveTypeForLike(Session session) throws HsqlException(Code)



resolveTypes
void resolveTypes(Session session) throws HsqlException(Code)



setAlias
void setAlias(String s, boolean isquoted)(Code)
Set the column alias and whether the name is quoted
Parameters:
  s - alias
Parameters:
  isquoted - boolean



setColumnName
void setColumnName(String newname, boolean isquoted)(Code)
Change the column name
Parameters:
  newname - name
Parameters:
  isquoted - quoted



setDataType
void setDataType(int type)(Code)
Set the data type
Parameters:
  type - data type



setDescending
void setDescending()(Code)
Set an ORDER BY column expression DESC



setDistinctAggregate
void setDistinctAggregate(boolean distinct)(Code)
Set this as a set function with / without DISTINCT
Parameters:
  distinct - is distinct



setForJoin
boolean setForJoin(TableFilter tf, boolean outer)(Code)
Marks all the expressions in the tree for a condition that is part of a JOIN .. ON ....
For LEFT OUTER joins, also tests the expression tree for the join condition to ensure only permitted expression types are there. If we want to exapand the expressions to include arithmetic operations or functions ... (fredt@users)
Parameters:
  tf - table filter
Parameters:
  outer - boolean boolean



setLeftExpression
void setLeftExpression(Expression e)(Code)
Sets the left leaf.
Parameters:
  e - expression



setLikeOptimised
void setLikeOptimised() throws HsqlException(Code)
Workaround for CHECK constraints. We don't want optimisation so we flag all LIKE expressions as already optimised.
throws:
  HsqlException -



setNull
void setNull()(Code)



setRightExpression
void setRightExpression(Expression e)(Code)



setTableColumnAttributes
void setTableColumnAttributes(Expression e)(Code)



setTableColumnAttributes
void setTableColumnAttributes(Table t, int i)(Code)



setTableName
void setTableName(String newname)(Code)
Change the table name
Parameters:
  newname - table name for column expression



setTrue
void setTrue()(Code)
When an Expression is assigned to a TableFilter, a copy is made for use there and the original is set to Expression.TRUE



similarTo
public boolean similarTo(Expression exp)(Code)
Check if the given expression defines similar operation as this expression. This method is used for ensuring an expression in the ORDER BY clause has a matching column in the SELECT list. This check is necessary with a SELECT DISTINCT query.
In the future we may perform the test when evaluating the search condition to get a more accurate match.
Parameters:
  exp - expression boolean



similarTo
static boolean similarTo(Expression e1, Expression e2)(Code)



swapCondition
void swapCondition() throws HsqlException(Code)
Swap the condition with its complement
throws:
  HsqlException -



test
Boolean test(Session session) throws HsqlException(Code)
Returns the test result of a conditional expression
Parameters:
  session - session boolean
throws:
  HsqlException -



testCondition
boolean testCondition(Session session) throws HsqlException(Code)



updateAggregatingValue
Object updateAggregatingValue(Session session, Object currValue) throws HsqlException(Code)
Instantiate the SetFunction or recurse, returning the result
Parameters:
  currValue - setFunction
Parameters:
  session - context a normal value or SetFunction instance
throws:
  HsqlException -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.