Java Doc for Expression.java in  » Database-DBMS » h2database » org » h2 » expression » 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 » h2database » org.h2.expression 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.h2.expression.Expression

All known Subclasses:   org.h2.expression.Parameter,  org.h2.expression.Wildcard,  org.h2.expression.Variable,  org.h2.expression.Rownum,  org.h2.expression.Subquery,  org.h2.expression.ExpressionList,  org.h2.expression.ValueExpression,  org.h2.expression.Operation,  org.h2.expression.JavaAggregate,  org.h2.expression.Condition,  org.h2.expression.ExpressionColumn,  org.h2.expression.Function,  org.h2.expression.Aggregate,  org.h2.expression.Alias,  org.h2.expression.SequenceValue,  org.h2.expression.JavaFunction,
Expression
abstract public class Expression (Code)
An expression is a operation, a value, or a function in a query.




Method Summary
public  voidaddFilterConditions(TableFilter filter, boolean outerJoin)
     Add conditions to a table filter if they can be evaluated.
public  voidcreateIndexConditions(Session session, TableFilter filter)
     Create index conditions if possible and attach them to the table filter.
public  StringgetAlias()
     Get the alias name of a column or SQL expression if it is not an aliased expression.
public  BooleangetBooleanValue(Session session)
     Get the value in form of a boolean expression.
public  StringgetColumnName()
     Get the column name or alias name of this expression.
abstract public  intgetCost()
     Estimate the cost to process the expression.
abstract public  intgetDisplaySize()
     Get the display size of this expression.
public  ExpressiongetNonAliasExpression()
     Returns the main expression, skipping aliases.
public  ExpressiongetNotIfPossible(Session session)
     If it is possible, return the negated expression.
public  intgetNullable()
     Check whether this expression is a column and can store null values.
abstract public  longgetPrecision()
     Get the precision of this expression.
abstract public  StringgetSQL()
     Get the SQL statement of this expression.
abstract public  intgetScale()
     Get the scale of this expression.
public  StringgetSchemaName()
    
public  StringgetTableAlias()
     Get the table alias name or null if this expression does not represent a column.
public  StringgetTableName()
    
abstract public  intgetType()
     Return the data type.
abstract public  ValuegetValue(Session session)
     Return the resulting value for the current row.
public  booleanisAutoIncrement()
     Check if this is an auto-increment column.
public  booleanisConstant()
     Check if this expression will always return the same value.
abstract public  booleanisEverything(ExpressionVisitor visitor)
     Check if this expression and all sub-expressions can fulfill a criteria.
final public  booleanisEverything(int expressionVisitorType)
     Check if this expression and all sub-expressions can fulfill a criteria.
public  booleanisValueSet()
     Is the value of a parameter set.
public  booleanisWildcard()
     Only returns true if the expression is a wildcard.
abstract public  voidmapColumns(ColumnResolver resolver, int level)
     Map the columns of the resolver to expression columns.
abstract public  Expressionoptimize(Session session)
     Try to optimize the expression.
public  ExpressionoptimizeInJoin(Session session, Select select)
     Optimize IN(...) expressions if possible.
abstract public  voidsetEvaluatable(TableFilter tableFilter, boolean value)
     Tell the expression columns whether the table filter can return values now.
public  StringtoString()
     Convert this expression to a String.
abstract public  voidupdateAggregate(Session session)
     Update an aggregate value.



Method Detail
addFilterConditions
public void addFilterConditions(TableFilter filter, boolean outerJoin)(Code)
Add conditions to a table filter if they can be evaluated.
Parameters:
  filter - the table filter
Parameters:
  outerJoin - if the expression is part of an outer join



createIndexConditions
public void createIndexConditions(Session session, TableFilter filter) throws SQLException(Code)
Create index conditions if possible and attach them to the table filter.
Parameters:
  session - the session
Parameters:
  filter - the table filter



getAlias
public String getAlias()(Code)
Get the alias name of a column or SQL expression if it is not an aliased expression. the alias name



getBooleanValue
public Boolean getBooleanValue(Session session) throws SQLException(Code)
Get the value in form of a boolean expression. Returns true, false, or null. In this database, everything can be a condition.
Parameters:
  session - the session the result



getColumnName
public String getColumnName()(Code)
Get the column name or alias name of this expression. the column name



getCost
abstract public int getCost()(Code)
Estimate the cost to process the expression. Used when optimizing the query, to calculate the query plan with the lowest estimated cost. the estimated cost



getDisplaySize
abstract public int getDisplaySize()(Code)
Get the display size of this expression. the display size



getNonAliasExpression
public Expression getNonAliasExpression()(Code)
Returns the main expression, skipping aliases. the expression



getNotIfPossible
public Expression getNotIfPossible(Session session)(Code)
If it is possible, return the negated expression. This is used to optimize NOT expressions: NOT ID>10 can be converted to ID<=10. Returns null if negating is not possible.
Parameters:
  session - the session the negated expression, or null



getNullable
public int getNullable()(Code)
Check whether this expression is a column and can store null values. whether null values are allowed



getPrecision
abstract public long getPrecision()(Code)
Get the precision of this expression. the precision



getSQL
abstract public String getSQL()(Code)
Get the SQL statement of this expression. This may not always be the original SQL statement, specially after optimization. the SQL statement



getScale
abstract public int getScale()(Code)
Get the scale of this expression. the scale



getSchemaName
public String getSchemaName()(Code)
Get the schema name, or null the schema name



getTableAlias
public String getTableAlias()(Code)
Get the table alias name or null if this expression does not represent a column. the table alias name



getTableName
public String getTableName()(Code)
Get the table name, or null the table name



getType
abstract public int getType()(Code)
Return the data type. The data type may not be known before the optimization phase. the type



getValue
abstract public Value getValue(Session session) throws SQLException(Code)
Return the resulting value for the current row.
Parameters:
  session - the session the result



isAutoIncrement
public boolean isAutoIncrement()(Code)
Check if this is an auto-increment column. true if it is an auto-increment column



isConstant
public boolean isConstant()(Code)
Check if this expression will always return the same value. if the expression is constant



isEverything
abstract public boolean isEverything(ExpressionVisitor visitor)(Code)
Check if this expression and all sub-expressions can fulfill a criteria. If any part returns false, the result is false.
Parameters:
  visitor - the visitor if the criteria can be fulfilled



isEverything
final public boolean isEverything(int expressionVisitorType)(Code)
Check if this expression and all sub-expressions can fulfill a criteria. This is a convenience function.
Parameters:
  expressionVisitorType - the visitor type if the criteria can be fulfilled



isValueSet
public boolean isValueSet()(Code)
Is the value of a parameter set. if it is set



isWildcard
public boolean isWildcard()(Code)
Only returns true if the expression is a wildcard. if this expression is a wildcard



mapColumns
abstract public void mapColumns(ColumnResolver resolver, int level) throws SQLException(Code)
Map the columns of the resolver to expression columns.
Parameters:
  resolver - the column resolver
Parameters:
  level - the subquery nesting level



optimize
abstract public Expression optimize(Session session) throws SQLException(Code)
Try to optimize the expression.
Parameters:
  session - the session the optimized expression



optimizeInJoin
public Expression optimizeInJoin(Session session, Select select) throws SQLException(Code)
Optimize IN(...) expressions if possible.
Parameters:
  session - the session
Parameters:
  select - the query the optimized expression



setEvaluatable
abstract public void setEvaluatable(TableFilter tableFilter, boolean value)(Code)
Tell the expression columns whether the table filter can return values now. This is used when optimizing the query.
Parameters:
  tableFilter - the table filter
Parameters:
  value - true if the table filter can return value



toString
public String toString()(Code)
Convert this expression to a String. the string representation



updateAggregate
abstract public void updateAggregate(Session session) throws SQLException(Code)
Update an aggregate value. This method is called at statement execution time once for each row.
Parameters:
  session - the session



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.