Java Doc for Prepared.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
.Prepared
All known Subclasses:
org.h2.command.dml
.NoOperation
,
org.h2.command.dml
.Set
,
org.h2.command.dml
.Update
,
org.h2.command.dml
.Delete
,
org.h2.command.dml
.Query
,
org.h2.command.ddl
.DefineCommand
,
org.h2.command.dml
.Call
,
org.h2.command.dml
.BackupCommand
,
org.h2.command.dml
.Merge
,
org.h2.command.dml
.TransactionCommand
,
org.h2.command.dml
.ExecuteProcedure
,
org.h2.command.dml
.ExplainPlan
,
org.h2.command.dml
.Insert
,
org.h2.command.dml
.ScriptBase
,
Prepared
abstract
public
class Prepared
(Code)
A prepared statement.
Field Summary
protected
int
headPos
The position of the head record (used for indexes).
protected
ObjectArray
parameters
The list of parameters.
protected
boolean
prepareAlways
If the query should be prepared before each execution.
protected
Session
session
The session.
protected
String
sql
The SQL string.
Constructor Summary
public
Prepared
(
Session
session)
Create a new object.
Method Summary
public
void
checkCancelled
()
Check if this statement was cancelled.
protected
void
checkParameters
()
public
int
getCurrentRowNumber
()
Get the current row number.
long
getModificationMetaId
()
Get the meta data modification id of the database when this statement was compiled.
protected
int
getObjectId
(boolean needFresh, boolean dataFile)
public
ObjectArray
getParameters
()
Get the parameter list.
public
String
getPlanSQL
()
Get the SQL statement with the execution plan.
public
String
getSQL
()
Get the SQL statement.
public
boolean
isQuery
()
Check if this object is a query.
public
boolean
isReadOnly
()
Check if this command is read only.
abstract
public
boolean
isTransactional
()
Check if this command is transactional.
public
boolean
needRecompile
()
Check if the statement needs to be re-compiled.
public
void
prepare
()
Prepare this statement.
public
LocalResult
query
(int maxrows)
Execute the query.
abstract
public
LocalResult
queryMeta
()
Get an empty result set containing the meta data.
public
void
setCommand
(
Command
command)
Set the command.
protected
void
setCurrentRowNumber
(int rowNumber)
Set the current row number.
public
void
setHeadPos
(int headPos)
Set the head position.
void
setModificationMetaId
(long id)
Set the meta data modification id of this statement.
public
void
setObjectId
(int i)
Set the object id for this statement.
public
void
setParameterList
(
ObjectArray
parameters)
Set the parameter list of this statement.
public
void
setPrepareAlways
(boolean prepareAlways)
Set the prepare always flag.
public
void
setSQL
(
String
sql)
Set the SQL statement.
public
void
setSession
(
Session
currentSession)
Set the session for this statement.
public
String
toString
()
Convert the statement to a String.
void
trace
()
public
int
update
()
Execute the statement.
Field Detail
headPos
protected
int headPos
(Code)
The position of the head record (used for indexes).
parameters
protected
ObjectArray
parameters
(Code)
The list of parameters.
prepareAlways
protected
boolean prepareAlways
(Code)
If the query should be prepared before each execution. This is set for queries with LIKE ?, because the query plan depends on the parameter value.
session
protected
Session
session
(Code)
The session.
sql
protected
String
sql
(Code)
The SQL string.
Constructor Detail
Prepared
public
Prepared(
Session
session)
(Code)
Create a new object.
Parameters:
session - the session
Method Detail
checkCancelled
public
void checkCancelled() throws
SQLException
(Code)
Check if this statement was cancelled.
throws:
SQLException
- if it was cancelled
checkParameters
protected
void checkParameters() throws
SQLException
(Code)
getCurrentRowNumber
public
int getCurrentRowNumber()
(Code)
Get the current row number. the row number
getModificationMetaId
long getModificationMetaId()
(Code)
Get the meta data modification id of the database when this statement was compiled. the meta data modification id
getObjectId
protected
int getObjectId(boolean needFresh, boolean dataFile)
(Code)
getParameters
public
ObjectArray
getParameters()
(Code)
Get the parameter list. the parameter list
getPlanSQL
public
String
getPlanSQL()
(Code)
Get the SQL statement with the execution plan. the execution plan
getSQL
public
String
getSQL()
(Code)
Get the SQL statement. the SQL statement
isQuery
public
boolean isQuery()
(Code)
Check if this object is a query. true if it is
isReadOnly
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
needRecompile
public
boolean needRecompile() throws
SQLException
(Code)
Check if the statement needs to be re-compiled. true if it must
prepare
public
void prepare() throws
SQLException
(Code)
Prepare this statement.
query
public
LocalResult
query(int maxrows) throws
SQLException
(Code)
Execute the query.
Parameters:
maxrows - the maximum number of rows to return the result set
throws:
SQLException
- if it 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
setCommand
public
void setCommand(
Command
command)
(Code)
Set the command.
Parameters:
command - the new command
setCurrentRowNumber
protected
void setCurrentRowNumber(int rowNumber)
(Code)
Set the current row number.
Parameters:
rowNumber - the row number
setHeadPos
public
void setHeadPos(int headPos)
(Code)
Set the head position.
Parameters:
headPos - the head position
setModificationMetaId
void setModificationMetaId(long id)
(Code)
Set the meta data modification id of this statement.
Parameters:
id - the new id
setObjectId
public
void setObjectId(int i)
(Code)
Set the object id for this statement.
Parameters:
i - the object id
setParameterList
public
void setParameterList(
ObjectArray
parameters)
(Code)
Set the parameter list of this statement.
Parameters:
parameters - the parameter list
setPrepareAlways
public
void setPrepareAlways(boolean prepareAlways)
(Code)
Set the prepare always flag. If set, the statement is re-compiled whenever it is executed.
Parameters:
prepareAlways - the new value
setSQL
public
void setSQL(
String
sql)
(Code)
Set the SQL statement.
Parameters:
sql - the SQL statement
setSession
public
void setSession(
Session
currentSession)
(Code)
Set the session for this statement.
Parameters:
currentSession - the new session
toString
public
String
toString()
(Code)
Convert the statement to a String. the SQL statement
trace
void trace() throws
SQLException
(Code)
update
public
int update() throws
SQLException
(Code)
Execute the statement. the update count
throws:
SQLException
- if it is a 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.