|
iiitToolkit 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.iiit.jdbc.JdbcPreparedStatement
Encapsulates a java.sql.PreparedStatement
Constructor Summary | |
protected |
JdbcPreparedStatement(JdbcConnection connection,
PreparedStatement statement)
Creates a new instance of JdbcPreparedStatement |
Method Summary | |
void |
clearBatch()
Empties this JdbcPreparedStatement object's current list of SQL commands. |
void |
clearWarnings()
Clears all the warnings reported on this Statement object. |
void |
close()
Releases this Statement object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed. |
JdbcResultSet |
executeQuery()
Executes the SQL query in this PreparedStatement object and returns the JdbcResultSet object generated by the query. |
int |
executeUpdate()
Executes the SQL statement in this PreparedStatement object, which must be an SQL INSERT, UPDATE or DELETE statement; or an SQL statement that returns nothing, such as a DDL statement. |
protected void |
finalize()
Release the JdbcConnection hold by this object explicitly. |
void |
setLong(int parameterIndex,
long x)
Sets the designated parameter to the given Java long value. |
void |
setString(int parameterIndex,
String x)
Sets the designated parameter to the given Java String value. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected JdbcPreparedStatement(JdbcConnection connection, PreparedStatement statement)
connection
- the connection that was used to create the meta data object.statement
- the encapsulated java.sql.PreparedStatementMethod Detail |
public JdbcResultSet executeQuery() throws JdbcException
JdbcResultSet
object that contains the data produced by the query; never null
JdbcException
- if a database access error occurs or the SQL statement does not return a JdbcResultSet objectpublic int executeUpdate() throws JdbcException
JdbcException
- if a database access error occurs or the SQL statement returns a JdbcResultSet objectpublic void clearBatch() throws JdbcException
JdbcException
- if a database access error occurs or the driver does not support batch updatespublic void clearWarnings() throws JdbcException
JdbcException
- if a database access error occurspublic void close() throws JdbcException
JdbcException
- if a database access error occurspublic void setString(int parameterIndex, String x) throws JdbcException
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
JdbcException
- if a database access error occurspublic void setLong(int parameterIndex, long x) throws JdbcException
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
JdbcException
- if a database access error occursprotected void finalize() throws Throwable
finalize
in class Object
Throwable
- Any throwable thrown during the excution.
|
iiitToolkit 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |