java.sql.Statement interface: supported JDBC 3.0 methods
JDBC 3.0 Statement Methods
Returns
Signature
Implementation Notes
ResultSet
getGeneratedKeys()
If the user has indicated that auto-generated keys
should be made available, this method returns the same results as a call to the
IDENTITY_VAL_LOCAL
function. Otherwise this method returns null.
boolean
execute(String sql, int autoGeneratedKeys)
autoGeneratedKeys argument is ignored unless
sql is an INSERT statement.
boolean
execute(String sql, int [] columnIndexes)
Column indexes are ignored unless sql is an INSERT
statement. Every column index in the array must correlate to an
auto-increment
column within the target table of the INSERT. Supported in embedded mode only.
boolean
execute(String sql, String [] columnNames)
Column names are ignored unless sql is an INSERT
statement. Every column name in the array must designate an
auto-increment
column within the target table of the INSERT. Supported in embedded mode only.
int
executeUpdate(String sql, int autoGeneratedKeys)
autoGeneratedKeys argument is ignored unless
sql is an INSERT statement.
int
executeUpdate(String sql, int [] columnIndexes)
Column indexes are ignored unless sql is an INSERT
statement. Every column index in the array must correlate to an
auto-increment
column within the target table of the INSERT. Supported in embedded mode only.
int
executeUpdate(String sql, String [] columnNames)
Column names are ignored unless sql is an INSERT
statement. Every column name in the array must designate an
auto-increment
column within the target table of the INSERT. Supported in embedded mode only.