Java Doc for QueryContext.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.QueryContext

QueryContext
public class QueryContext (Code)
Represents the state of the query at any particular time.




Method Summary
public static  QueryContextallocate()
     Returns a new query context.
public  voidclearParameters()
    
public static  voidfree(QueryContext queryContext)
     Returns a new query context.
public  intgetBoolean(int index)
     Returns the boolean parameter.
public  byte[]getBuffer()
     Returns the temp buffer.
public  longgetDate(int index)
     Returns the long parameter.
public  doublegetDouble(int index)
     Returns the double parameter.
public  GeneratedKeysResultSetgetGeneratedKeysResultSet()
     Gets the generated keys result set.
public  DatagetGroupData(int index)
     Returns the indexed group field.
public  doublegetGroupDouble(int index)
     Sets the indexed group field as a double.
public  longgetGroupLong(int index)
     Sets the indexed group field as a long.
public  StringgetGroupString(int index)
     Sets the indexed group field.
public  intgetLimit()
    
public  longgetLong(int index)
     Returns the long parameter.
public  SelectResultgetResult()
     Gets the result set.
public  intgetRowUpdateCount()
     Returns the number of rows updated.
public  StringgetString(int index)
     Returns the string parameter.
public  TableIterator[]getTableIterators()
     Returns the table iterator.
public  TransactiongetTransaction()
     Returns the transaction.
 Iterator<GroupItem>groupResults()
     Returns the group results.
public  voidinit(Transaction xa, TableIterator[] tableIterators, boolean isReadOnly)
     Initializes the query state.
public  voidinitGroup(int size, boolean[] isGroupByFields)
     Initializes the group.
public  booleanisGroupNull(int index)
     Sets the indexed group field.
public  booleanisNull(int index)
     Returns the null parameter.
public  booleanisReturnGeneratedKeys()
     Set if the query should return the generated keys.
public  voidlock()
     Lock the blocks.
public  voidselectGroup()
     Selects the actual group item.
public  voidsetBoolean(int index, boolean value)
     Set a boolean parameter.
public  voidsetDouble(int index, double value)
     Set a double parameter.
public  voidsetGroupDouble(int index, double value)
     Sets the indexed group field as a double.
 voidsetGroupItem(GroupItem item)
     Sets the current result.
public  voidsetGroupLong(int index, long value)
     Sets the indexed group field as a long.
public  voidsetGroupString(int index, String value)
     Sets the indexed group field.
public  voidsetLimit(int limit)
    
public  voidsetLong(int index, long value)
     Set a long parameter.
public  voidsetNull(int index)
     Set a null parameter.
public  voidsetResult(SelectResult result)
     Sets the result set.
public  voidsetReturnGeneratedKeys(boolean isReturnGeneratedKeys)
     Set if the query should return the generated keys.
public  voidsetRowUpdateCount(int count)
     Sets the number of rows updated.
public  voidsetString(int index, String value)
     Set a string parameter.
public  voidsetTransaction(Transaction xa)
     Sets the transaction.
public  voidunlock()
     Unlock the blocks.



Method Detail
allocate
public static QueryContext allocate()(Code)
Returns a new query context.



clearParameters
public void clearParameters()(Code)



free
public static void free(QueryContext queryContext)(Code)
Returns a new query context.



getBoolean
public int getBoolean(int index)(Code)
Returns the boolean parameter.



getBuffer
public byte[] getBuffer()(Code)
Returns the temp buffer.



getDate
public long getDate(int index)(Code)
Returns the long parameter.



getDouble
public double getDouble(int index)(Code)
Returns the double parameter.



getGeneratedKeysResultSet
public GeneratedKeysResultSet getGeneratedKeysResultSet()(Code)
Gets the generated keys result set.



getGroupData
public Data getGroupData(int index)(Code)
Returns the indexed group field.



getGroupDouble
public double getGroupDouble(int index)(Code)
Sets the indexed group field as a double.



getGroupLong
public long getGroupLong(int index)(Code)
Sets the indexed group field as a long.



getGroupString
public String getGroupString(int index)(Code)
Sets the indexed group field.



getLimit
public int getLimit()(Code)
The max rows returned in a select



getLong
public long getLong(int index)(Code)
Returns the long parameter.



getResult
public SelectResult getResult()(Code)
Gets the result set.



getRowUpdateCount
public int getRowUpdateCount()(Code)
Returns the number of rows updated.



getString
public String getString(int index)(Code)
Returns the string parameter.



getTableIterators
public TableIterator[] getTableIterators()(Code)
Returns the table iterator.



getTransaction
public Transaction getTransaction()(Code)
Returns the transaction.



groupResults
Iterator<GroupItem> groupResults()(Code)
Returns the group results.



init
public void init(Transaction xa, TableIterator[] tableIterators, boolean isReadOnly)(Code)
Initializes the query state.



initGroup
public void initGroup(int size, boolean[] isGroupByFields)(Code)
Initializes the group.



isGroupNull
public boolean isGroupNull(int index)(Code)
Sets the indexed group field.



isNull
public boolean isNull(int index)(Code)
Returns the null parameter.



isReturnGeneratedKeys
public boolean isReturnGeneratedKeys()(Code)
Set if the query should return the generated keys.



lock
public void lock() throws SQLException(Code)
Lock the blocks. The blocks are locked in ascending block id order to avoid deadlocks.
Parameters:
  isWrite - if true, the block should be locked for writing



selectGroup
public void selectGroup()(Code)
Selects the actual group item.



setBoolean
public void setBoolean(int index, boolean value)(Code)
Set a boolean parameter.



setDouble
public void setDouble(int index, double value)(Code)
Set a double parameter.



setGroupDouble
public void setGroupDouble(int index, double value)(Code)
Sets the indexed group field as a double.



setGroupItem
void setGroupItem(GroupItem item)(Code)
Sets the current result.



setGroupLong
public void setGroupLong(int index, long value)(Code)
Sets the indexed group field as a long.



setGroupString
public void setGroupString(int index, String value)(Code)
Sets the indexed group field.



setLimit
public void setLimit(int limit)(Code)
The max rows returned in a select



setLong
public void setLong(int index, long value)(Code)
Set a long parameter.



setNull
public void setNull(int index)(Code)
Set a null parameter.



setResult
public void setResult(SelectResult result)(Code)
Sets the result set.



setReturnGeneratedKeys
public void setReturnGeneratedKeys(boolean isReturnGeneratedKeys)(Code)
Set if the query should return the generated keys.



setRowUpdateCount
public void setRowUpdateCount(int count)(Code)
Sets the number of rows updated.



setString
public void setString(int index, String value)(Code)
Set a string parameter.



setTransaction
public void setTransaction(Transaction xa)(Code)
Sets the transaction.



unlock
public void unlock() throws SQLException(Code)
Unlock the blocks. The blocks are unlocked in descending order.
Parameters:
  isWrite - if true, the block should be unlocked for writing



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.