# java.sql.Statement interface

Derby does not implement the setEscapeProcessing method of java.sql.Statement. In addition, the cancel method raises a "Feature not supported" exception.

Table 1. Implementation Notes on 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 [] columnIndexes) | 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) | 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 [] columnIndexes) | 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) | Every column name in the array must designate an auto-increment column within the target table of the INSERT. Supported in embedded mode only.

- ResultSet objects
- Autogenerated keys

Parent topic: JDBC reference
Related reference
java.sql.Driver interface
java.sql.DriverManager.getConnection method
java.sql.Connection interface
java.sql.DatabaseMetaData interface
java.sql.CallableStatement interface
java.sql.PreparedStatement interface
java.sql.ResultSet interface
java.sql.ResultSetMetaData interface
java.sql.SQLException class
java.sql.SQLWarning class
java.sql.Savepoint interface
Mapping of java.sql.Types to SQL types
JDBC Package for Connected Device Configuration/Foundation Profile (JSR 169)
JDBC 4.0-only features
JDBC escape syntax