InterClient Scrollability
Go Up to Programming with JDBC
Contents
The InterClient Connection Class
To achieve JDBC 2.0 core compliance, InterClient now allows a value of TYPE_SCROLL_INSENSITIVE
for the resultSetType
argument for the following Connection
methods:
public java.sql.Statement createStatement (int resultSetType, int resultSetConcurrency) public java.sql.CallableStatement prepareCall (String sql, int resultSetType, int resultSetConcurrency) public java.sql.PreparedStatement prepareStatement (String sql, int resultSetType, int resultSetConcurrency) Previously, the only allowable value for resultSetType was TYPE_FORWARD_ONLY. Currently, the only type not allowed is the TYPE_SCROLL_SENSITIVE
The ResultSet Class
The resultSetType property of the ResultSet class can now have a value of TYPE_SCROLL_INSENSITIVE
Previously, the only allowable value for resultSetType
was TYPE_FORWARD_ONLY.
Currently, the only type not allowed is the TYPE_SCROLL_SENSITIVE
.
The following methods now return a valid value when the resultSets that are of the new resultSetType.TYPE_SCROLL_INSENSITIVE
:
public boolean isBeforeFirst() public boolean isAfterLast() public boolean isFirst() public isLast() public void beforeFirst() public void afterLast() public boolean first() public boolean last() public int getRow() public boolean absolute(int row) public boolean relative(int rows) public boolean previous()
Additional Functions
Additional functions that implement the JDBC 2.x API functionality are listed below.
Function | Functionality |
---|---|
|
Returns the type if |
|
Returns the concurrency if |
|
Returns the fetch direction if |
|
Returns |
|
Returns the fetch size for the result set of the statement. |
|
Allows you to set the fetch size of the resultset and the statement. |
|
Throws an exception; it can only work with |