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


java.lang.Object
   org.h2.message.TraceObject
      org.h2.jdbc.JdbcStatement
         org.h2.jdbc.JdbcPreparedStatement

All known Subclasses:   org.h2.jdbc.JdbcCallableStatement,
JdbcPreparedStatement
public class JdbcPreparedStatement extends JdbcStatement implements PreparedStatement(Code)
Represents a prepared statement.



Constructor Summary
 JdbcPreparedStatement(SessionInterface session, JdbcConnection conn, String sql, int resultSetType, int id, boolean closeWithResultSet)
    

Method Summary
public  voidaddBatch(String sql)
     Calling this method is not legal on a PreparedStatement.
public  voidaddBatch()
     Adds the current settings to the batch.
public  voidclearBatch()
     Clears the batch.
public  voidclearParameters()
     Clears all parameters.
public  voidclose()
     Closes this statement.
public  booleanexecute()
     Executes an arbitrary statement.
public  booleanexecute(String sql)
     Calling this method is not legal on a PreparedStatement.
public  booleanexecute(String sql, int autoGeneratedKeys)
     Calling this method is not legal on a PreparedStatement.
public  booleanexecute(String sql, int[] columnIndexes)
     Calling this method is not legal on a PreparedStatement.
public  booleanexecute(String sql, String[] columnNames)
     Calling this method is not legal on a PreparedStatement.
public  int[]executeBatch()
     Executes the batch.
public  ResultSetexecuteQuery()
     Executes a query (select statement) and returns the result set.
public  ResultSetexecuteQuery(String sql)
     Calling this method is not legal on a PreparedStatement.
public  intexecuteUpdate()
     Executes a statement (insert, update, delete, create, drop, commit, rollback) and returns the update count.
public  intexecuteUpdate(String sql)
     Calling this method is not legal on a PreparedStatement.
public  intexecuteUpdate(String sql, int autoGeneratedKeys)
     Calling this method is not legal on a PreparedStatement.
public  intexecuteUpdate(String sql, int[] columnIndexes)
     Calling this method is not legal on a PreparedStatement.
public  intexecuteUpdate(String sql, String[] columnNames)
     Calling this method is not legal on a PreparedStatement.
public  ResultSetMetaDatagetMetaData()
     Gets the result set metadata of the query returned when the statement is executed.
public  ParameterMetaDatagetParameterMetaData()
     Get the parameter meta data of this prepared statement.
public  voidsetArray(int parameterIndex, Array x)
     [Not supported] Sets the value of a parameter as a Array.
public  voidsetAsciiStream(int parameterIndex, InputStream x, int length)
     Sets the value of a parameter as an ASCII stream.
public  voidsetAsciiStream(int parameterIndex, InputStream x, long length)
     Sets the value of a parameter as an ASCII stream.
public  voidsetAsciiStream(int parameterIndex, InputStream x)
     Sets the value of a parameter as an ASCII stream.
public  voidsetBigDecimal(int parameterIndex, BigDecimal x)
     Sets the value of a parameter.
public  voidsetBinaryStream(int parameterIndex, InputStream x, long length)
     Sets the value of a parameter as an input stream.
public  voidsetBinaryStream(int parameterIndex, InputStream x, int length)
     Sets the value of a parameter as an input stream.
public  voidsetBinaryStream(int parameterIndex, InputStream x)
     Sets the value of a parameter as an input stream.
public  voidsetBlob(int parameterIndex, Blob x)
     Sets the value of a parameter as a Blob.
public  voidsetBlob(int parameterIndex, InputStream x)
     Sets the value of a parameter as a Blob.
public  voidsetBlob(int parameterIndex, InputStream x, long length)
     Sets the value of a parameter as a Blob.
public  voidsetBoolean(int parameterIndex, boolean x)
     Sets the value of a parameter.
public  voidsetByte(int parameterIndex, byte x)
     Sets the value of a parameter.
public  voidsetBytes(int parameterIndex, byte[] x)
     Sets the value of a parameter as a byte array.
public  voidsetCharacterStream(int parameterIndex, Reader x, int length)
     Sets the value of a parameter as a character stream.
public  voidsetCharacterStream(int parameterIndex, Reader x)
     Sets the value of a parameter as a character stream.
public  voidsetCharacterStream(int parameterIndex, Reader x, long length)
     Sets the value of a parameter as a character stream.
public  voidsetClob(int parameterIndex, Clob x)
     Sets the value of a parameter as a Clob.
public  voidsetClob(int parameterIndex, Reader x)
     Sets the value of a parameter as a Clob.
public  voidsetClob(int parameterIndex, Reader x, long length)
     Sets the value of a parameter as a Clob.
public  voidsetDate(int parameterIndex, java.sql.Date x)
     Sets the value of a parameter.
public  voidsetDate(int parameterIndex, java.sql.Date x, Calendar calendar)
     Sets the date using a specified timezone.
public  voidsetDouble(int parameterIndex, double x)
     Sets the value of a parameter.
public  voidsetFloat(int parameterIndex, float x)
     Sets the value of a parameter.
public  voidsetInt(int parameterIndex, int x)
     Sets the value of a parameter.
public  voidsetLong(int parameterIndex, long x)
     Sets the value of a parameter.
public  voidsetNCharacterStream(int parameterIndex, Reader x, long length)
     Sets the value of a parameter as a character stream.
public  voidsetNCharacterStream(int parameterIndex, Reader x)
     Sets the value of a parameter as a character stream.
public  voidsetNClob(int parameterIndex, Reader x)
     Sets the value of a parameter as a Clob.
public  voidsetNClob(int parameterIndex, Reader x, long length)
     Sets the value of a parameter as a Clob.
public  voidsetNString(int parameterIndex, String x)
     Sets the value of a parameter.
public  voidsetNull(int parameterIndex, int sqlType)
     Sets a parameter to null.
public  voidsetNull(int parameterIndex, int sqlType, String typeName)
     Sets a parameter to null.
public  voidsetObject(int parameterIndex, Object x)
     Sets the value of a parameter.
public  voidsetObject(int parameterIndex, Object x, int targetSqlType)
     Sets the value of a parameter.
public  voidsetObject(int parameterIndex, Object x, int targetSqlType, int scale)
     Sets the value of a parameter.
public  voidsetRef(int parameterIndex, Ref x)
     [Not supported] Sets the value of a column as a reference.
public  voidsetShort(int parameterIndex, short x)
     Sets the value of a parameter.
public  voidsetString(int parameterIndex, String x)
     Sets the value of a parameter.
public  voidsetTime(int parameterIndex, java.sql.Time x)
     Sets the value of a parameter.
public  voidsetTime(int parameterIndex, java.sql.Time x, Calendar calendar)
     Sets the time using a specified timezone.
public  voidsetTimestamp(int parameterIndex, java.sql.Timestamp x)
     Sets the value of a parameter.
public  voidsetTimestamp(int parameterIndex, java.sql.Timestamp x, Calendar calendar)
     Sets the timestamp using a specified timezone.
public  voidsetURL(int parameterIndex, URL x)
    
public  voidsetUnicodeStream(int parameterIndex, InputStream x, int length)
     [Not supported] This feature is deprecated and not supported.
public  StringtoString()
    


Constructor Detail
JdbcPreparedStatement
JdbcPreparedStatement(SessionInterface session, JdbcConnection conn, String sql, int resultSetType, int id, boolean closeWithResultSet) throws SQLException(Code)




Method Detail
addBatch
public void addBatch(String sql) throws SQLException(Code)
Calling this method is not legal on a PreparedStatement.
throws:
  SQLException - Unsupported Feature



addBatch
public void addBatch() throws SQLException(Code)
Adds the current settings to the batch.



clearBatch
public void clearBatch() throws SQLException(Code)
Clears the batch.



clearParameters
public void clearParameters() throws SQLException(Code)
Clears all parameters.
throws:
  SQLException - if this object is closed or invalid



close
public void close() throws SQLException(Code)
Closes this statement. All result sets that where created by this statement become invalid after calling this method.



execute
public boolean execute() throws SQLException(Code)
Executes an arbitrary statement. If another result set exists for this statement, this will be closed (even if this statement fails). If auto commit is on, and the statement is not a select, this statement will be committed. true if a result set is available, false if not
throws:
  SQLException - if this object is closed or invalid



execute
public boolean execute(String sql) throws SQLException(Code)
Calling this method is not legal on a PreparedStatement.
throws:
  SQLException - Unsupported Feature



execute
public boolean execute(String sql, int autoGeneratedKeys) throws SQLException(Code)
Calling this method is not legal on a PreparedStatement.
throws:
  SQLException - Unsupported Feature



execute
public boolean execute(String sql, int[] columnIndexes) throws SQLException(Code)
Calling this method is not legal on a PreparedStatement.
throws:
  SQLException - Unsupported Feature



execute
public boolean execute(String sql, String[] columnNames) throws SQLException(Code)
Calling this method is not legal on a PreparedStatement.
throws:
  SQLException - Unsupported Feature



executeBatch
public int[] executeBatch() throws SQLException(Code)
Executes the batch. the array of update counts



executeQuery
public ResultSet executeQuery() throws SQLException(Code)
Executes a query (select statement) and returns the result set. If another result set exists for this statement, this will be closed (even if this statement fails). the result set
throws:
  SQLException - if this object is closed or invalid



executeQuery
public ResultSet executeQuery(String sql) throws SQLException(Code)
Calling this method is not legal on a PreparedStatement.
throws:
  SQLException - Unsupported Feature



executeUpdate
public int executeUpdate() throws SQLException(Code)
Executes a statement (insert, update, delete, create, drop, commit, rollback) and returns the update count. If another result set exists for this statement, this will be closed (even if this statement fails). If the statement is a create or drop and does not throw an exception, the current transaction (if any) is committed after executing the statement. If auto commit is on, this statement will be committed. the update count (number of row affected by an insert, update ordelete, or 0 if no rows or the statement was a create, drop,commit or rollback)
throws:
  SQLException - if this object is closed or invalid



executeUpdate
public int executeUpdate(String sql) throws SQLException(Code)
Calling this method is not legal on a PreparedStatement.
throws:
  SQLException - Unsupported Feature



executeUpdate
public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException(Code)
Calling this method is not legal on a PreparedStatement.
throws:
  SQLException - Unsupported Feature



executeUpdate
public int executeUpdate(String sql, int[] columnIndexes) throws SQLException(Code)
Calling this method is not legal on a PreparedStatement.
throws:
  SQLException - Unsupported Feature



executeUpdate
public int executeUpdate(String sql, String[] columnNames) throws SQLException(Code)
Calling this method is not legal on a PreparedStatement.
throws:
  SQLException - Unsupported Feature



getMetaData
public ResultSetMetaData getMetaData() throws SQLException(Code)
Gets the result set metadata of the query returned when the statement is executed. If this is not a query, this method returns null. the meta data or null if this is not a query
throws:
  SQLException - if this object is closed



getParameterMetaData
public ParameterMetaData getParameterMetaData() throws SQLException(Code)
Get the parameter meta data of this prepared statement. the meta data



setArray
public void setArray(int parameterIndex, Array x) throws SQLException(Code)
[Not supported] Sets the value of a parameter as a Array.



setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException(Code)
Sets the value of a parameter as an ASCII stream.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
Parameters:
  length - the number of bytes
throws:
  SQLException - if this object is closed



setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException(Code)
Sets the value of a parameter as an ASCII stream.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
Parameters:
  length - the number of bytes
throws:
  SQLException - if this object is closed



setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException(Code)
Sets the value of a parameter as an ASCII stream.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setBigDecimal
public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException(Code)
Sets the value of a parameter.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException(Code)
Sets the value of a parameter as an input stream.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
Parameters:
  length - the number of bytes
throws:
  SQLException - if this object is closed



setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException(Code)
Sets the value of a parameter as an input stream.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
Parameters:
  length - the number of bytes
throws:
  SQLException - if this object is closed



setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException(Code)
Sets the value of a parameter as an input stream.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setBlob
public void setBlob(int parameterIndex, Blob x) throws SQLException(Code)
Sets the value of a parameter as a Blob.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setBlob
public void setBlob(int parameterIndex, InputStream x) throws SQLException(Code)
Sets the value of a parameter as a Blob.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setBlob
public void setBlob(int parameterIndex, InputStream x, long length) throws SQLException(Code)
Sets the value of a parameter as a Blob.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setBoolean
public void setBoolean(int parameterIndex, boolean x) throws SQLException(Code)
Sets the value of a parameter.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setByte
public void setByte(int parameterIndex, byte x) throws SQLException(Code)
Sets the value of a parameter.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setBytes
public void setBytes(int parameterIndex, byte[] x) throws SQLException(Code)
Sets the value of a parameter as a byte array.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setCharacterStream
public void setCharacterStream(int parameterIndex, Reader x, int length) throws SQLException(Code)
Sets the value of a parameter as a character stream.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
Parameters:
  length - the number of bytes
throws:
  SQLException - if this object is closed



setCharacterStream
public void setCharacterStream(int parameterIndex, Reader x) throws SQLException(Code)
Sets the value of a parameter as a character stream.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setCharacterStream
public void setCharacterStream(int parameterIndex, Reader x, long length) throws SQLException(Code)
Sets the value of a parameter as a character stream.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
Parameters:
  length - the number of bytes
throws:
  SQLException - if this object is closed



setClob
public void setClob(int parameterIndex, Clob x) throws SQLException(Code)
Sets the value of a parameter as a Clob.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setClob
public void setClob(int parameterIndex, Reader x) throws SQLException(Code)
Sets the value of a parameter as a Clob.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setClob
public void setClob(int parameterIndex, Reader x, long length) throws SQLException(Code)
Sets the value of a parameter as a Clob.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setDate
public void setDate(int parameterIndex, java.sql.Date x) throws SQLException(Code)
Sets the value of a parameter.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setDate
public void setDate(int parameterIndex, java.sql.Date x, Calendar calendar) throws SQLException(Code)
Sets the date using a specified timezone. The value will be converted to the local timezone.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
Parameters:
  calendar - the calendar
throws:
  SQLException - if this object is closed



setDouble
public void setDouble(int parameterIndex, double x) throws SQLException(Code)
Sets the value of a parameter.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setFloat
public void setFloat(int parameterIndex, float x) throws SQLException(Code)
Sets the value of a parameter.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setInt
public void setInt(int parameterIndex, int x) throws SQLException(Code)
Sets the value of a parameter.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setLong
public void setLong(int parameterIndex, long x) throws SQLException(Code)
Sets the value of a parameter.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setNCharacterStream
public void setNCharacterStream(int parameterIndex, Reader x, long length) throws SQLException(Code)
Sets the value of a parameter as a character stream.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
Parameters:
  length - the number of bytes
throws:
  SQLException - if this object is closed



setNCharacterStream
public void setNCharacterStream(int parameterIndex, Reader x) throws SQLException(Code)
Sets the value of a parameter as a character stream.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setNClob
public void setNClob(int parameterIndex, Reader x) throws SQLException(Code)
Sets the value of a parameter as a Clob.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setNClob
public void setNClob(int parameterIndex, Reader x, long length) throws SQLException(Code)
Sets the value of a parameter as a Clob.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setNString
public void setNString(int parameterIndex, String x) throws SQLException(Code)
Sets the value of a parameter.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setNull
public void setNull(int parameterIndex, int sqlType) throws SQLException(Code)
Sets a parameter to null.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  sqlType - the data type (Types.x)
throws:
  SQLException - if this object is closed



setNull
public void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException(Code)
Sets a parameter to null.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  sqlType - the data type (Types.x)
Parameters:
  typeName - this parameter is ignored
throws:
  SQLException - if this object is closed



setObject
public void setObject(int parameterIndex, Object x) throws SQLException(Code)
Sets the value of a parameter.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setObject
public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException(Code)
Sets the value of a parameter. The object is converted, if required, to the specified data type before sending to the database.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value, null is allowed
Parameters:
  targetSqlType - the type as defined in java.sql.Types
throws:
  SQLException - if this object is closed



setObject
public void setObject(int parameterIndex, Object x, int targetSqlType, int scale) throws SQLException(Code)
Sets the value of a parameter. The object is converted, if required, to the specified data type before sending to the database.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value, null is allowed
Parameters:
  targetSqlType - the type as defined in java.sql.Types
Parameters:
  scale - is ignored
throws:
  SQLException - if this object is closed



setRef
public void setRef(int parameterIndex, Ref x) throws SQLException(Code)
[Not supported] Sets the value of a column as a reference.



setShort
public void setShort(int parameterIndex, short x) throws SQLException(Code)
Sets the value of a parameter.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setString
public void setString(int parameterIndex, String x) throws SQLException(Code)
Sets the value of a parameter.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setTime
public void setTime(int parameterIndex, java.sql.Time x) throws SQLException(Code)
Sets the value of a parameter.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setTime
public void setTime(int parameterIndex, java.sql.Time x, Calendar calendar) throws SQLException(Code)
Sets the time using a specified timezone. The value will be converted to the local timezone.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
Parameters:
  calendar - the calendar
throws:
  SQLException - if this object is closed



setTimestamp
public void setTimestamp(int parameterIndex, java.sql.Timestamp x) throws SQLException(Code)
Sets the value of a parameter.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
throws:
  SQLException - if this object is closed



setTimestamp
public void setTimestamp(int parameterIndex, java.sql.Timestamp x, Calendar calendar) throws SQLException(Code)
Sets the timestamp using a specified timezone. The value will be converted to the local timezone.
Parameters:
  parameterIndex - the parameter index (1, 2, ...)
Parameters:
  x - the value
Parameters:
  calendar - the calendar
throws:
  SQLException - if this object is closed



setURL
public void setURL(int parameterIndex, URL x) throws SQLException(Code)
[Not supported]



setUnicodeStream
public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException(Code)
[Not supported] This feature is deprecated and not supported.



toString
public String toString()(Code)
INTERNAL



Fields inherited from org.h2.jdbc.JdbcStatement
protected boolean closedByResultSet(Code)(Java Doc)
protected JdbcConnection conn(Code)(Java Doc)
protected boolean escapeProcessing(Code)(Java Doc)
protected int fetchSize(Code)(Java Doc)
protected int maxRows(Code)(Java Doc)
protected JdbcResultSet resultSet(Code)(Java Doc)
protected int resultSetType(Code)(Java Doc)
protected SessionInterface session(Code)(Java Doc)
protected int updateCount(Code)(Java Doc)

Methods inherited from org.h2.jdbc.JdbcStatement
public void addBatch(String sql) throws SQLException(Code)(Java Doc)
public void cancel() throws SQLException(Code)(Java Doc)
void checkClosed() throws SQLException(Code)(Java Doc)
public void clearBatch() throws SQLException(Code)(Java Doc)
public void clearWarnings() throws SQLException(Code)(Java Doc)
public void close() throws SQLException(Code)(Java Doc)
void closeOld() throws SQLException(Code)(Java Doc)
public boolean execute(String sql) throws SQLException(Code)(Java Doc)
public boolean execute(String sql, int autoGeneratedKeys) throws SQLException(Code)(Java Doc)
public boolean execute(String sql, int[] columnIndexes) throws SQLException(Code)(Java Doc)
public boolean execute(String sql, String[] columnNames) throws SQLException(Code)(Java Doc)
public int[] executeBatch() throws SQLException(Code)(Java Doc)
public ResultSet executeQuery(String sql) throws SQLException(Code)(Java Doc)
public int executeUpdate(String sql) throws SQLException(Code)(Java Doc)
public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException(Code)(Java Doc)
public int executeUpdate(String sql, int[] columnIndexes) throws SQLException(Code)(Java Doc)
public int executeUpdate(String sql, String[] columnNames) throws SQLException(Code)(Java Doc)
public Connection getConnection() throws SQLException(Code)(Java Doc)
public int getFetchDirection() throws SQLException(Code)(Java Doc)
public int getFetchSize() throws SQLException(Code)(Java Doc)
public ResultSet getGeneratedKeys() throws SQLException(Code)(Java Doc)
public int getMaxFieldSize() throws SQLException(Code)(Java Doc)
public int getMaxRows() throws SQLException(Code)(Java Doc)
public boolean getMoreResults() throws SQLException(Code)(Java Doc)
public boolean getMoreResults(int current) throws SQLException(Code)(Java Doc)
public int getQueryTimeout() throws SQLException(Code)(Java Doc)
public ResultSet getResultSet() throws SQLException(Code)(Java Doc)
public int getResultSetConcurrency() throws SQLException(Code)(Java Doc)
public int getResultSetHoldability() throws SQLException(Code)(Java Doc)
public int getResultSetType() throws SQLException(Code)(Java Doc)
public int getUpdateCount() throws SQLException(Code)(Java Doc)
public SQLWarning getWarnings() throws SQLException(Code)(Java Doc)
public boolean isClosed() throws SQLException(Code)(Java Doc)
public boolean isPoolable() throws SQLException(Code)(Java Doc)
public void setCursorName(String name) throws SQLException(Code)(Java Doc)
public void setEscapeProcessing(boolean enable) throws SQLException(Code)(Java Doc)
protected void setExecutingStatement(CommandInterface c)(Code)(Java Doc)
public void setFetchDirection(int direction) throws SQLException(Code)(Java Doc)
public void setFetchSize(int rows) throws SQLException(Code)(Java Doc)
public void setMaxFieldSize(int max) throws SQLException(Code)(Java Doc)
public void setMaxRows(int maxRows) throws SQLException(Code)(Java Doc)
public void setPoolable(boolean poolable) throws SQLException(Code)(Java Doc)
public void setQueryTimeout(int seconds) throws SQLException(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Fields inherited from org.h2.message.TraceObject
final public static int CALLABLE_STATEMENTCONNECTIONDATABASE_META_DATAPREPARED_STATEMENTRESULT_SETRESULT_SET_META_DATASAVEPOINTSQL_EXCEPTIONSTATEMENTBLOBCLOBPARAMETER_META_DATA(Code)(Java Doc)
final public static int DATA_SOURCEXA_DATA_SOURCEXIDARRAY(Code)(Java Doc)

Methods inherited from org.h2.message.TraceObject
protected boolean debug()(Code)(Java Doc)
protected void debugCode(String text)(Code)(Java Doc)
protected void debugCodeAssign(String className, int type, int id, String value)(Code)(Java Doc)
protected void debugCodeCall(String text)(Code)(Java Doc)
protected void debugCodeCall(String text, long param)(Code)(Java Doc)
protected void debugCodeCall(String text, String param)(Code)(Java Doc)
protected int getNextId(int type)(Code)(Java Doc)
protected Trace getTrace()(Code)(Java Doc)
protected int getTraceId()(Code)(Java Doc)
public String getTraceObjectName()(Code)(Java Doc)
protected boolean info()(Code)(Java Doc)
protected SQLException logAndConvert(Throwable e)(Code)(Java Doc)
protected String quote(String s)(Code)(Java Doc)
protected String quoteArray(String[] s)(Code)(Java Doc)
protected String quoteBigDecimal(BigDecimal x)(Code)(Java Doc)
protected String quoteBytes(byte[] x)(Code)(Java Doc)
protected String quoteDate(java.sql.Date x)(Code)(Java Doc)
protected String quoteIntArray(int[] s)(Code)(Java Doc)
protected String quoteMap(Map map)(Code)(Java Doc)
protected String quoteTime(java.sql.Time x)(Code)(Java Doc)
protected String quoteTimestamp(java.sql.Timestamp x)(Code)(Java Doc)
protected void setTrace(Trace trace, int type, int id)(Code)(Java Doc)
public static String toString(String sql, ObjectArray params)(Code)(Java Doc)

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.