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


java.lang.Object
   org.h2.command.Command

All known Subclasses:   org.h2.command.CommandList,  org.h2.command.CommandContainer,
Command
abstract public class Command implements CommandInterface(Code)
Represents a SQL statement. This object is only used on the server side.


Field Summary
final protected  Sessionsession
     The session.
protected  longstartTime
     The last start time.
final protected  Tracetrace
     The trace module.

Constructor Summary
public  Command(Parser parser, String sql)
    

Method Summary
public  voidcancel()
    
public  voidcheckCancelled()
     Check if this command has been cancelled, and throw an exception if yes.
public  voidclose()
    
public  ResultInterfaceexecuteQuery(int maxrows, boolean scrollable)
    
public  LocalResultexecuteQueryLocal(int maxrows)
     Execute a query and return a local result set.
public  intexecuteUpdate()
    
final public  ResultInterfacegetMetaData()
    
final public  LocalResultgetMetaDataLocal()
    
abstract public  ObjectArraygetParameters()
     Get the list of parameters.
abstract public  booleanisQuery()
     Check if this command is a query.
abstract public  booleanisReadOnly()
     Check if this command is read only.
abstract public  booleanisTransactional()
     Check if this command is transactional.
public  LocalResultquery(int maxrows)
     Execute a query statement, if this is possible.
abstract public  LocalResultqueryMeta()
     Get an empty result set containing the meta data.
protected  voidstart()
    
public  StringtoString()
    
public  intupdate()
     Execute an updating statement, if this is possible.

Field Detail
session
final protected Session session(Code)
The session.



startTime
protected long startTime(Code)
The last start time.



trace
final protected Trace trace(Code)
The trace module.




Constructor Detail
Command
public Command(Parser parser, String sql)(Code)




Method Detail
cancel
public void cancel()(Code)



checkCancelled
public void checkCancelled() throws SQLException(Code)
Check if this command has been cancelled, and throw an exception if yes.
throws:
  SQLException - if the statement has been cancelled



close
public void close()(Code)



executeQuery
public ResultInterface executeQuery(int maxrows, boolean scrollable) throws SQLException(Code)



executeQueryLocal
public LocalResult executeQueryLocal(int maxrows) throws SQLException(Code)
Execute a query and return a local result set. This method prepares everything and calls Command.query(int) finally.
Parameters:
  maxrows - the maximum number of rows to return the local result set



executeUpdate
public int executeUpdate() throws SQLException(Code)



getMetaData
final public ResultInterface getMetaData() throws SQLException(Code)



getMetaDataLocal
final public LocalResult getMetaDataLocal() throws SQLException(Code)



getParameters
abstract public ObjectArray getParameters()(Code)
Get the list of parameters. the list of parameters



isQuery
abstract public boolean isQuery()(Code)
Check if this command is a query. true if it is



isReadOnly
abstract public boolean isReadOnly()(Code)
Check if this command is read only. true if it is



isTransactional
abstract public boolean isTransactional()(Code)
Check if this command is transactional. If it is not, then it forces the current transaction to commit. true if it is



query
public LocalResult query(int maxrows) throws SQLException(Code)
Execute a query statement, if this is possible.
Parameters:
  maxrows - the maximum number of rows returned the local result set
throws:
  SQLException - if the command is not a query



queryMeta
abstract public LocalResult queryMeta() throws SQLException(Code)
Get an empty result set containing the meta data. an empty result set



start
protected void start()(Code)



toString
public String toString()(Code)



update
public int update() throws SQLException(Code)
Execute an updating statement, if this is possible. the update count
throws:
  SQLException - if the command is not an updating statement



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.