|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sybase implementation of the Statement
interface.
Some 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
Statement
object to a SybStatement
.
Statement
,
Connection.createStatement()
,
ResultSet
Method Summary | |
Connection |
getConnection()
JDBC 2.0 API - Returns the Connection that produced the Statement. |
int |
getFetchSize()
JDBC 2.0 API - Queries statement's fetch size for a cursored select. |
int |
getResultSetConcurrency()
JDBC 2.0 API - Returns the concurrency setting for the select statement. |
SybMessageHandler |
getSybMessageHandler()
Returns current message handler object for this Statement . |
void |
setCursorName(String name)
JDBC 1.0 API - Enables statement's query to declare a cursor at the database server. |
void |
setFetchSize(int numRows)
JDBC 2.0 API - Sets the number of rows to fetch at a time and indicates that the statement should be declared as a cursor on the database server when it is executed. |
void |
setSybMessageHandler(SybMessageHandler msgHandler)
Sets the message handler for this statement. |
Methods inherited from interface java.sql.Statement |
addBatch,
cancel,
clearBatch,
clearWarnings,
close,
execute,
executeBatch,
executeQuery,
executeUpdate,
getFetchDirection,
getMaxFieldSize,
getMaxRows,
getMoreResults,
getQueryTimeout,
getResultSet,
getResultSetType,
getUpdateCount,
getWarnings,
setEscapeProcessing,
setFetchDirection,
setMaxFieldSize,
setMaxRows,
setQueryTimeout |
Method Detail |
public Connection getConnection() throws SQLException
JDBC 2.0 API - Returns the Connection that produced the Statement.
Statement.getConnection()
public int getFetchSize() throws SQLException
JDBC 2.0 API - Queries statement's fetch size for a cursored select. If a cursor is not specified for the statement, 0 is returned. This indicates that a select operation will not declare a cursor and the entire row result set will be fetched.
Statement.getFetchSize()
public SybMessageHandler getSybMessageHandler()
Statement
.public int getResultSetConcurrency() throws SQLException
JDBC 2.0 API - Returns the concurrency setting for the select statement. If the statement does not declare a database cursor for the query, 0 is returned.
Statement.getResultSetConcurrency()
,
com.sybase.jdbc2.jdbc.SybCursorResultSet
public void setCursorName(String name) throws SQLException
JDBC 1.0 API - Enables statement's query to declare a cursor at the database server. This method must be called before the query is executed.
Statement.setCursorName(java.lang.String)
public void setFetchSize(int numRows) throws SQLException
JDBC 2.0 API -
Sets the number of rows to fetch at a time and indicates that the
statement should be declared
as a cursor on the database server when it is executed.
This method sets the number of rows that should be sent from the server
to the client in batch fetches. ResultSet.next
still moves through the rows one at a time,
but each next
call does not necessarily result in
an interaction with the database.
numRows
- number of rows per fetchStatement.setFetchSize(int)
,
SybCursorResultSet
public void setSybMessageHandler(SybMessageHandler msgHandler)
msgHandler
- message handler to be called when an error
occurs; null turns off error callbacks
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |