Skip to Main Content
JDBC Pocket Reference
book

JDBC Pocket Reference

by Donald Bales
January 2003
Intermediate to advanced content levelIntermediate to advanced
176 pages
5h 3m
English
O'Reilly Media, Inc.
Content preview from JDBC Pocket Reference
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- ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro Couchbase Server, Second Edition

Pro Couchbase Server, Second Edition

David Ostrovsky, Mohammed Haji, Yaniv Rodenski
Pro Couchbase Server

Pro Couchbase Server

David Ostrovsky, Yaniv Rodenski

Publisher Resources

ISBN: 9780596528713