
Statement
138
|
JDBC Pocket Reference
be made available for retrieval. Returns a count of the number
of rows affected by the SQL statement. (Java 1.4)
int executeUpdate(String sql, int[ ] columnIndexes)
int executeUpdate(String sql, String[ ] columnNames)
Executes an SQL INSERT, UPDATE, or DELETE statement
while signaling the driver that any autogenerated keys for the
specified columns should be made available for retrieval.
Returns a count of the number of rows affected by the SQL
statement. (Java 1.4)
Connection getConnection( )
Returns the Connection used to create this statement. (Java 1.2)
int getFetchDirection( )
Returns the current fetch direction for result sets created by
this statement. The fetch direction will be one of the
following constants (Java 1.2):
ResultSet.FETCH_FORWARD
ResultSet.FETCH_REVERSE
ResultSet.FETCH_UNKNOWN
int getFetchSize( )
Returns the default fetch size in rows. (Java 1.2)
ResultSet getGeneratedKeys( )
Returns a result set that contains any autogenerated keys
created as a result of executing this
Statement. (Java 1.4)
int getMaxFieldSize( )
Returns the maximum size of any column value in bytes.
int getMaxRows( )
Returns the maximum number of rows a result set can
retrieve.
boolean getMoreResults( )
Returns true if the executed SQL statement produced a result
set, otherwise
false.
boolean getMoreResults(int current)
Returns true if there is another result set available. The dispo- ...