Oracle Driver : Rowset Support

Rowset Support
The Oracle driver supports any JSR 114 implementation of the RowSet interface, including:
*
*
*
*
*
See http://www.jcp.org/en/jsr/detail?id=114 for more information about JSR 114.
*
The Oracle driver supports retrieving the values of auto-generated keys. An auto-generated key returned by the Oracle driver is the value of a ROWID pseudo column.
An application can return values of auto-generated keys when it executes an Insert statement. How you return these values depends on whether you are using an Insert statement that contains parameters:
*
When using an Insert statement that contains no parameters, the Oracle driver supports the following form of the Statement.execute() and Statement.executeUpdate() methods to instruct the driver to return values of auto-generated keys:
*
Statement.execute(String sql, int autoGeneratedKeys)
*
Statement.execute(String sql, int[] columnIndexes)
*
Statement.execute(String sql, String[] columnNames)
*
Statement.executeUpdate(String sql, int autoGeneratedKeys)
*
Statement.executeUpdate(String sql, int[] columnIndexes)
*
Statement.executeUpdate(String sql, String[] columnNames)
*
When using an Insert statement that contains parameters, the Oracle driver supports the following form of the Connection.prepareStatement() method to instruct the driver to return values of auto-generated keys:
*
Connection.prepareStatement(String sql, int autoGeneratedKeys)
*
Connection.prepareStatement(String sql, int[] columnIndexes)
*
Connection.prepareStatement(String sql, String[] columnNames)
Note:
An application can retrieve values of auto-generated keys using the Statement.getGeneratedKeys() method. This method returns a ResultSet object with a column for each auto-generated key.
Refer to Designing JDBC Applications for Performance Optimization in the DataDirect Connect Series for JDBC Reference for information about how auto-generated keys can improve performance.

© 2012 Progress Software Corporation and/or its subsidiaries or affiliates.