Java Doc for Query.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » db » sql » 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 » EJB Server resin 3.1.5 » resin » com.caucho.db.sql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.db.sql.Query

All known Subclasses:   com.caucho.db.sql.DeleteQuery,  com.caucho.db.sql.UpdateQuery,  com.caucho.db.sql.SelectQuery,  com.caucho.db.sql.CreateQuery,  com.caucho.db.sql.TempQuery,  com.caucho.db.sql.InsertQuery,  com.caucho.db.sql.DropQuery,
Query
abstract public class Query (Code)


Field Summary
protected  Expr_whereExpr
    

Constructor Summary
protected  Query(Database db, String sql)
    
protected  Query(Database db, String sql, FromItem[] fromItems)
    

Method Summary
protected  voidbind()
     Binds the query.
protected  Exprbind(String tableName, String columnName)
     Returns a bound expression for the specified table.column.
public  voidclearParameters()
     Clears the paramters.
abstract public  voidexecute(QueryContext queryCtx, Transaction xa)
     Executes the query.
protected  voidfreeRows(TableIterator[] rows, int rowLength)
     Frees any blocks for the rows.
protected  voidgenerateWhere(Expr whereExpr)
     Optimize the where and order the from items.
public  intgetDataFields()
     Returns the number of temporary data fields.
public  DatabasegetDatabase()
     Returns the owning database.
public  FromItem[]getFromItems()
     Returns any from items.
public  ArrayList<SubSelectParamExpr>getParamExprs()
     Returns the param exprs.
public  QuerygetParent()
    
 StringgetSQL()
     Returns the SQL.
public  SubSelectExprgetSubSelect()
     Gets the parent sub-select.
public  Expr[]getWhereExprs()
    
public  booleanisGroup()
    
public  booleanisReadOnly()
    
public  booleanisSelect()
     Returns true for select queries.
protected  booleannextTuple(TableIterator[] rows, int rowLength, QueryContext queryContext, Transaction xa)
     Returns the next tuple from the query.
public  voidsetBinaryStream(int index, InputStream is, int length)
    
public  voidsetBoolean(int index, boolean value)
     Sets the indexed parameter as a boolean.
public  voidsetDataFields(int fieldCount)
     Sets the number of temporary data fields.
public  voidsetDate(int index, long value)
     Sets the indexed parameter as a date value.
public  voidsetDouble(int index, double value)
     Sets the indexed parameter as a double.
protected  voidsetFromItems(FromItem[] fromItems)
     Sets from items.
protected  voidsetFromItems(ArrayList<FromItem> fromItems)
     Sets from items.
public  voidsetGroup(boolean isGroup)
     Sets the current number of group fields.
public  voidsetLimit(int limit)
    
public  voidsetLong(int index, long value)
     Sets the indexed parameter as a long.
public  voidsetParams(ParamExpr[] params)
     Sets the params.
public  voidsetParent(Query query)
    
public  voidsetString(int index, String value)
     Sets the indexed parameter as a string.
public  voidsetSubSelect(SubSelectExpr subSelect)
     Sets the parent sub-select.
public  voidsetWhereExpr(Expr expr)
     Sets the where expr.
protected  voidsetWhereExprs(Expr[] whereExprs)
     Sets the where exprs.
protected  booleanstart(TableIterator[] rows, int rowLength, QueryContext queryContext, Transaction xa)
     Starts the query.

Field Detail
_whereExpr
protected Expr _whereExpr(Code)




Constructor Detail
Query
protected Query(Database db, String sql)(Code)



Query
protected Query(Database db, String sql, FromItem[] fromItems)(Code)




Method Detail
bind
protected void bind() throws SQLException(Code)
Binds the query.



bind
protected Expr bind(String tableName, String columnName) throws SQLException(Code)
Returns a bound expression for the specified table.column.



clearParameters
public void clearParameters()(Code)
Clears the paramters.



execute
abstract public void execute(QueryContext queryCtx, Transaction xa) throws SQLException(Code)
Executes the query.



freeRows
protected void freeRows(TableIterator[] rows, int rowLength)(Code)
Frees any blocks for the rows.



generateWhere
protected void generateWhere(Expr whereExpr) throws SQLException(Code)
Optimize the where and order the from items.



getDataFields
public int getDataFields()(Code)
Returns the number of temporary data fields.



getDatabase
public Database getDatabase()(Code)
Returns the owning database.



getFromItems
public FromItem[] getFromItems()(Code)
Returns any from items.



getParamExprs
public ArrayList<SubSelectParamExpr> getParamExprs()(Code)
Returns the param exprs.



getParent
public Query getParent()(Code)
Gets the parent query



getSQL
String getSQL()(Code)
Returns the SQL.



getSubSelect
public SubSelectExpr getSubSelect()(Code)
Gets the parent sub-select.



getWhereExprs
public Expr[] getWhereExprs()(Code)
Returns the where exprs



isGroup
public boolean isGroup()(Code)
Sets true for group operations



isReadOnly
public boolean isReadOnly()(Code)



isSelect
public boolean isSelect()(Code)
Returns true for select queries.



nextTuple
protected boolean nextTuple(TableIterator[] rows, int rowLength, QueryContext queryContext, Transaction xa) throws SQLException(Code)
Returns the next tuple from the query.



setBinaryStream
public void setBinaryStream(int index, InputStream is, int length)(Code)
Sets the indexed parameter as a binary stream



setBoolean
public void setBoolean(int index, boolean value)(Code)
Sets the indexed parameter as a boolean.



setDataFields
public void setDataFields(int fieldCount)(Code)
Sets the number of temporary data fields.



setDate
public void setDate(int index, long value)(Code)
Sets the indexed parameter as a date value.



setDouble
public void setDouble(int index, double value)(Code)
Sets the indexed parameter as a double.



setFromItems
protected void setFromItems(FromItem[] fromItems)(Code)
Sets from items.



setFromItems
protected void setFromItems(ArrayList<FromItem> fromItems)(Code)
Sets from items.



setGroup
public void setGroup(boolean isGroup)(Code)
Sets the current number of group fields.



setLimit
public void setLimit(int limit)(Code)
Sets the maximum entires



setLong
public void setLong(int index, long value)(Code)
Sets the indexed parameter as a long.



setParams
public void setParams(ParamExpr[] params)(Code)
Sets the params.



setParent
public void setParent(Query query)(Code)
Sets the parent query



setString
public void setString(int index, String value)(Code)
Sets the indexed parameter as a string.



setSubSelect
public void setSubSelect(SubSelectExpr subSelect)(Code)
Sets the parent sub-select.



setWhereExpr
public void setWhereExpr(Expr expr)(Code)
Sets the where expr.



setWhereExprs
protected void setWhereExprs(Expr[] whereExprs)(Code)
Sets the where exprs.



start
protected boolean start(TableIterator[] rows, int rowLength, QueryContext queryContext, Transaction xa) throws SQLException(Code)
Starts the query.



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.