|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This subinterface of SybResultSet
provides methods for cursor
operations.
Methods in this interface are part of the JDBC 2.0 standard, available
in jConnect 5.0. However, jConnect 4.1 provides them as Sybase-specific
extensions to JDBC 1.0. They can be accessed only by casting the
ResultSet
object to a SybCursorResultSet
.
SybResultSet
,
ResultSet
,
Statement.executeQuery(java.lang.String)
,
Statement.getResultSet()
,
ResultSetMetaData
Fields inherited from class com.sybase.jdbcx.SybResultSet |
CONCUR_READ_ONLY,
CONCUR_UNKNOWN,
CONCUR_UPDATABLE,
TYPE_FORWARD_ONLY |
Method Summary | |
void |
cancelRowUpdates()
JDBC 2.0 API - Cancels the updates made to a row. |
void |
deleteRow()
JDBC 2.0 API - Deletes the current row from the underlying database. |
void |
deleteRow(String table)
Sybase extension for JDBC 2.0 API - Delete the current row from the underlying database. |
int |
getConcurrency()
JDBC 2.0 API - Returns the concurrency of this result set. |
String |
getCursorName()
|
int |
getFetchSize()
JDBC 2.0 API - Returns the fetch size for this result set. |
int |
getType()
JDBC 2.0 API - Returns the type of this result set. |
boolean |
isLanguageCursor()
Sybase extension for JDBC 2.0 API - Returns type of cursor declared at the server. |
boolean |
rowDeleted()
JDBC 2.0 API Determines if the current row has been deleted. |
boolean |
rowUpdated()
JDBC 2.0 API - Determines if the current row has been updated. |
void |
setFetchSize(int rows)
JDBC 2.0 API - Sets the number of rows that should be fetched from the database when more rows are needed for this result set. |
void |
updateAsciiStream(int parameterIndex,
InputStream x,
int length)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateAsciiStream(String columnName,
InputStream x,
int length)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateBigDecimal(int parameterIndex,
BigDecimal x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateBigDecimal(String columnName,
BigDecimal x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateBinaryStream(int parameterIndex,
InputStream x,
int length)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateBinaryStream(String columnName,
InputStream x,
int length)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateBoolean(int parameterIndex,
boolean x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateBoolean(String columnName,
boolean x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateByte(int parameterIndex,
byte x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateByte(String columnName,
byte x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateBytes(int parameterIndex,
byte[] x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateBytes(String columnName,
byte[] x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateCharacterStream(int parameterIndex,
Reader r,
int length)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateCharacterStream(String columnName,
Reader r,
int length)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateDate(int parameterIndex,
Date x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateDate(String columnName,
Date x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateDouble(int parameterIndex,
double x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateDouble(String columnName,
double x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateFloat(int parameterIndex,
float x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateFloat(String columnName,
float x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateInt(int parameterIndex,
int x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateInt(String columnName,
int x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateLong(int parameterIndex,
long x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateLong(String columnName,
long x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateNull(int parameterIndex)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateNull(String columnName)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateObject(int parameterIndex,
Object x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateObject(int parameterIndex,
Object x,
int scale)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateObject(String columnName,
Object x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateObject(String columnName,
Object x,
int scale)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateRow()
JDBC 2.0 API - Updates the underlying database with the new contents prepared for the current row with the updateXXX() methods. |
void |
updateRow(String table)
Sybase extension for JDBC 2.0 API - Updates the underlying database with the new contents prepared for the current row with the updateXXX() methods. |
void |
updateShort(int parameterIndex,
short x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateShort(String columnName,
short x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateString(int parameterIndex,
String x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateString(String columnName,
String x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateTime(int parameterIndex,
Time x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateTime(String columnName,
Time x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateTimestamp(int parameterIndex,
Timestamp x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
void |
updateTimestamp(String columnName,
Timestamp x)
JDBC 2.0 API - Prepares the column value for an update of the current row. |
Methods inherited from interface com.sybase.jdbcx.SybResultSet |
getBigDecimal,
getBigDecimal,
getSybTextPointer,
getSybTextPointer,
updateBigDecimal,
updateBigDecimal |
Methods inherited from interface java.sql.ResultSet |
absolute,
afterLast,
beforeFirst,
clearWarnings,
close,
findColumn,
first,
getArray,
getArray,
getAsciiStream,
getAsciiStream,
getBigDecimal,
getBigDecimal,
getBinaryStream,
getBinaryStream,
getBlob,
getBlob,
getBoolean,
getBoolean,
getByte,
getByte,
getBytes,
getBytes,
getCharacterStream,
getCharacterStream,
getClob,
getClob,
getDate,
getDate,
getDate,
getDate,
getDouble,
getDouble,
getFetchDirection,
getFloat,
getFloat,
getInt,
getInt,
getLong,
getLong,
getMetaData,
getObject,
getObject,
getObject,
getObject,
getRef,
getRef,
getRow,
getShort,
getShort,
getStatement,
getString,
getString,
getTime,
getTime,
getTime,
getTime,
getTimestamp,
getTimestamp,
getTimestamp,
getTimestamp,
getUnicodeStream,
getUnicodeStream,
getWarnings,
insertRow,
isAfterLast,
isBeforeFirst,
isFirst,
isLast,
last,
moveToCurrentRow,
moveToInsertRow,
next,
previous,
refreshRow,
relative,
rowInserted,
setFetchDirection,
wasNull |
Method Detail |
public String getCursorName() throws SQLException
ResultSet.getCursorName()
public boolean isLanguageCursor()
Sybase extension for JDBC 2.0 API - Returns type of cursor declared at the server.
public void setFetchSize(int rows) throws SQLException
JDBC 2.0 API - Sets the number of rows that should be fetched from the database when more rows are needed for this result set. The fetch size may be changed at any time.
rows
- the number of rows to fetchResultSet.setFetchSize(int)
public int getFetchSize() throws SQLException
JDBC 2.0 API - Returns the fetch size for this result set.
ResultSet.getFetchSize()
public int getType() throws SQLException
JDBC 2.0 API - Returns the type of this result set. The type is determined based on the statement that created the result set.
ResultSet.getType()
public int getConcurrency() throws SQLException
JDBC 2.0 API - Returns the concurrency of this result set. The concurrency used is determined by the statement that created the result set.
ResultSet.getConcurrency()
public boolean rowUpdated() throws SQLException
JDBC 2.0 API - Determines if the current row has been updated.
ResultSet.rowUpdated()
public boolean rowDeleted() throws SQLException
JDBC 2.0 API Determines if the current row has been deleted.
ResultSet.rowDeleted()
public void updateNull(int parameterIndex) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnIndex
- the first column is 1, the second is 2, ...ResultSet.updateNull(int)
public void updateBoolean(int parameterIndex, boolean x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueResultSet.updateBoolean(int, boolean)
public void updateByte(int parameterIndex, byte x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueResultSet.updateByte(int, byte)
public void updateShort(int parameterIndex, short x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueResultSet.updateShort(int, short)
public void updateInt(int parameterIndex, int x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueResultSet.updateInt(int, int)
public void updateLong(int parameterIndex, long x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueResultSet.updateLong(int, long)
public void updateFloat(int parameterIndex, float x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueResultSet.updateFloat(int, float)
public void updateDouble(int parameterIndex, double x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueResultSet.updateDouble(int, double)
public void updateBigDecimal(int parameterIndex, BigDecimal x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueResultSet.updateBigDecimal(int, java.math.BigDecimal)
public void updateString(int parameterIndex, String x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueResultSet.updateString(int, java.lang.String)
public void updateBytes(int parameterIndex, byte[] x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueResultSet.updateBytes(int, byte[])
public void updateDate(int parameterIndex, Date x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueResultSet.updateDate(int, java.sql.Date)
public void updateTime(int parameterIndex, Time x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueResultSet.updateTime(int, java.sql.Time)
public void updateTimestamp(int parameterIndex, Timestamp x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueResultSet.updateTimestamp(int, java.sql.Timestamp)
public void updateAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valuelength
- the length of the streamResultSet.updateAsciiStream(int, java.io.InputStream, int)
public void updateBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valuelength
- the length of the streamResultSet.updateBinaryStream(int, java.io.InputStream, int)
public void updateCharacterStream(int parameterIndex, Reader r, int length) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valuelength
- the length of the streamResultSet.updateCharacterStream(int, java.io.Reader, int)
public void updateObject(int parameterIndex, Object x, int scale) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valuescale
- For java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types,
this is the number of digits after the decimal. For all other
types this value is ignored.ResultSet.updateObject(int, java.lang.Object)
public void updateObject(int parameterIndex, Object x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueResultSet.updateObject(int, java.lang.Object)
public void updateNull(String columnName) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnName
- the name of the columnResultSet.updateNull(int)
public void updateBoolean(String columnName, boolean x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnName
- the name of the columnx
- the new column valueResultSet.updateBoolean(int, boolean)
public void updateByte(String columnName, byte x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnName
- the name of the columnx
- the new column valueResultSet.updateByte(int, byte)
public void updateShort(String columnName, short x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnName
- the name of the columnx
- the new column valueResultSet.updateShort(int, short)
public void updateInt(String columnName, int x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnName
- the name of the columnx
- the new column valueResultSet.updateInt(int, int)
public void updateLong(String columnName, long x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnName
- the name of the columnx
- the new column valueResultSet.updateLong(int, long)
public void updateFloat(String columnName, float x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnName
- the name of the columnx
- the new column valueResultSet.updateFloat(int, float)
public void updateDouble(String columnName, double x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnName
- the name of the columnx
- the new column valueResultSet.updateDouble(int, double)
public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnName
- the name of the columnx
- the new column valueResultSet.updateBigDecimal(int, java.math.BigDecimal)
public void updateString(String columnName, String x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnName
- the name of the columnx
- the new column valueResultSet.updateString(int, java.lang.String)
public void updateBytes(String columnName, byte[] x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnName
- the name of the columnx
- the new column valueResultSet.updateBytes(int, byte[])
public void updateDate(String columnName, Date x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnName
- the name of the columnx
- the new column valueResultSet.updateDate(int, java.sql.Date)
public void updateTime(String columnName, Time x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnName
- the name of the columnx
- the new column valueResultSet.updateTime(int, java.sql.Time)
public void updateTimestamp(String columnName, Timestamp x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnName
- the name of the columnx
- the new column valueResultSet.updateTimestamp(int, java.sql.Timestamp)
public void updateAsciiStream(String columnName, InputStream x, int length) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnName
- the name of the columnx
- the new column valuelength
- of the streamResultSet.updateAsciiStream(int, java.io.InputStream, int)
public void updateBinaryStream(String columnName, InputStream x, int length) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnName
- the name of the columnx
- the new column valuelength
- of the streamResultSet.updateBinaryStream(int, java.io.InputStream, int)
public void updateCharacterStream(String columnName, Reader r, int length) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnName
- the name of the columnx
- the new column valuelength
- of the streamResultSet.updateCharacterStream(int, java.io.Reader, int)
public void updateObject(String columnName, Object x, int scale) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnName
- the name of the columnx
- the new column valuescale
- For java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types,
this is the number of digits after the decimal. For all other
types this value is ignored.ResultSet.updateObject(int, java.lang.Object)
public void updateObject(String columnName, Object x) throws SQLException
JDBC 2.0 API - Prepares the column value for an update of the current row.
columnName
- the name of the columnx
- the new column valueResultSet.updateObject(int, java.lang.Object)
public void cancelRowUpdates() throws SQLException
JDBC 2.0 API - Cancels the updates made to a row. When called after calling an updateXXX() method and before calling the updateRow() method, the updates made to a row are rolled back. If no updates have been made or the updateRow() method has already been called, then this method has no effect.
ResultSet.cancelRowUpdates()
public void deleteRow() throws SQLException
JDBC 2.0 API - Deletes the current row from the underlying database.
ResultSet.deleteRow()
public void deleteRow(String table) throws SQLException
Sybase extension for JDBC 2.0 API - Delete the current row from the underlying database.
table
- name of the table from which the row is to be deletedResultSet.deleteRow()
public void updateRow() throws SQLException
JDBC 2.0 API - Updates the underlying database with the new contents prepared for the current row with the updateXXX() methods.
ResultSet.updateRow()
public void updateRow(String table) throws SQLException
Sybase extension for JDBC 2.0 API - Updates the underlying database with the new contents prepared for the current row with the updateXXX() methods.
table
- table name where the row is to be updatedResultSet.updateRow()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |