|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sas.net.sharenet.ShareNetStatement
ShareNetStatement implements java.sql.Statement
Fields inherited from interface java.sql.Statement |
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO |
Constructor Summary |
Method Summary | |
void |
addBatch(String sql)
JDBC 2.0 Adds a SQL command to the current batch of commmands for the statement. |
void |
addWarning(SQLWarning warning)
Adds a warning to this Statement. |
void |
cancel()
Cancels a query or execute statement. |
void |
clearBatch()
JDBC 2.0 Clears the set of commands in the current batch. |
void |
clearWarnings()
Clears the warnings for this Statement. |
void |
close()
Closes the ShareNetStatement object. |
boolean |
execute(String sql)
Executes an SQL statement and indicates the form of the first result. |
boolean |
execute(String sql,
int autoGeneratedKeys)
Executes the given SQL statement, which may return multiple results, and signals the driver that any auto-generated keys should be made available for retrieval. |
boolean |
execute(String sql,
int[] columnIndexes)
Executes the given SQL statement, which may return multiple results, and signals the driver that the auto-generated keys indicated in the given array should be made available for retrieval. |
boolean |
execute(String sql,
String[] columnNames)
Executes the given SQL statement, which may return multiple results, and signals the driver that the auto-generated keys indicated in the given array should be made available for retrieval. |
int[] |
executeBatch()
JDBC 2.0 Submits a batch of commands to the database for execution. |
ResultSet |
executeQuery(String query)
Executes an SQL statement that returns a single ResultSet. |
int |
executeUpdate(String sql)
Executes an SQL INSERT, UPDATE or DELETE statement. |
int |
executeUpdate(String sql,
int autoGeneratedKeys)
Executes the given SQL statement and signals the driver with the given flag about whether the auto-generated keys produced by this Statement object should
be made available for retrieval.
|
int |
executeUpdate(String sql,
int[] columnIndexes)
Executes the given SQL statement and signals the driver that the auto-generated keys indicated in the given array should be made available for retrieval. |
int |
executeUpdate(String sql,
String[] columnNames)
Executes the given SQL statement and signals the driver that the auto-generated keys indicated in the given array should be made available for retrieval. |
String |
fieldFormat(int i)
Find the type of all the fields in the query. |
String[] |
fieldNames()
Find the names of all the fields in the query. |
int |
fieldType(int i)
Find the type of all the fields in the query. |
Connection |
getConnection()
JDBC 2.0 Gets the Connection that produced this Statement. |
int |
getFetchDirection()
JDBC 2.0 Gets the fetch direction for the result set created by this statement. |
int |
getFetchSize()
JDBC 2.0 Gets the number of rows to be fetched. |
ResultSet |
getGeneratedKeys()
Retrieves any auto-generated keys created as a result of executing this Statement
object. |
int |
getMaxFieldSize()
Indicates the maximum number of bytes that can be returned for a column. |
int |
getMaxRows()
Indicates the maximum number of rows that can be returned in a ResultSet. |
boolean |
getMoreResults()
Moves to a Statement's next result. |
boolean |
getMoreResults(int current)
The method is not implemented at this time. |
int |
getQueryTimeout()
Indicates the number of seconds the query waits before it times out. |
ResultSet |
getResultSet()
Gets the current ResultSet. |
int |
getResultSetConcurrency()
JDBC 2.0 Gets the result set concurrency type CONCUR_READ_ONLY as the resultset is a READ ONLY resultset. |
int |
getResultSetHoldability()
Retrieves the result set holdability for ResultSet objects generated by this
Statement object.
|
int |
getResultSetType()
JDBC 2.0 Gets the result set type TYPE_FORWARD_ONLY as scrolling is not supported. |
int |
getUpdateCount()
Returns the current result, which should be an integer value. |
SQLWarning |
getWarnings()
Gets the warnings for this statement. |
int |
numFields()
Return the number of fields in the query. |
void |
setCursorName(String name)
Sets the cursor name. |
void |
setEscapeProcessing(boolean enable)
Sets escape processing. |
void |
setFetchDirection(int direction)
JDBC 2.0 Gives a hint as to the direction in which the rows in the result set created by this statement will be processed. |
void |
setFetchSize(int rows)
JDBC 2.0 Sets the number of rows to be fetched. |
void |
setMaxFieldSize(int max)
Sets the limit for the number of bytes that can be returned for a column. |
void |
setMaxRows(int max)
Sets the limit for the maximum number of rows that any ResultSet can contain to the given number. |
void |
setQueryTimeout(int seconds)
Sets the query timeout limit. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
Method Detail |
public ResultSet executeQuery(String query) throws SQLException
executeQuery
in interface Statement
query
- Typically this is a static SQL SELECT statement.SQLException
- This exception is thrown if any ShareNetExceptions are detected.public int executeUpdate(String sql) throws SQLException
executeUpdate
in interface Statement
sql
- An SQL INSERT, UPDATE or DELETE statement.SQLException
- This exception is thrown if any ShareNetExceptions are detected.public void close()
close
in interface Statement
public int getMaxFieldSize() throws SQLException
getMaxFieldSize
in interface Statement
SQLException
- This exception is required by the interface, but it is never thrown.public void setMaxFieldSize(int max) throws SQLException
setMaxFieldSize
in interface Statement
max
- The limit on the number of bytes that can be returned for a column.SQLException
- This exception is thrown if the value of max is less than 0.public int getMaxRows() throws SQLException
getMaxRows
in interface Statement
SQLException
- This exception is required by the interface, but it is never thrown.public void setMaxRows(int max) throws SQLException
setMaxRows
in interface Statement
max
- The limit on the number rows that can be returned in a ResultSet. zero means unlimited.SQLException
- This exception is thrown if the value of max is less than 0.public void setEscapeProcessing(boolean enable) throws SQLException
setEscapeProcessing
in interface Statement
enable
- The value for this parameter must be False.SQLException
- This exception is thrown if value of enable is True.public int getQueryTimeout() throws SQLException
getQueryTimeout
in interface Statement
SQLException
- This exception is required by the interface, but it is never thrown.public void setQueryTimeout(int seconds) throws SQLException
setQueryTimeout
in interface Statement
seconds
- The value of this parameter must be 0. Timeout is currently not supported.SQLException
- This exception is thrown if value of seconds is not equal to 0.public void cancel() throws SQLException
cancel
in interface Statement
SQLException
- This exception may be thrown.public SQLWarning getWarnings() throws SQLException
getWarnings
in interface Statement
SQLException
- This exception is required by the interface, but it is never thrown.public void clearWarnings() throws SQLException
clearWarnings
in interface Statement
SQLException
- This exception is required by the interface, but it is never thrown.public void setCursorName(String name) throws SQLException
setCursorName
in interface Statement
name
- The new cursor name.SQLException
- This exception is required by the interface, but it is never thrown.public boolean execute(String sql) throws SQLException
execute
in interface Statement
sql
- An SQL statement.SQLException
- This exception is thrown if a ShareNetException is detectedgetResultSet()
,
getUpdateCount()
,
getMoreResults()
public ResultSet getResultSet() throws SQLException
getResultSet
in interface Statement
SQLException
- This exception is required by the interface, but it is never thrown.execute(java.lang.String)
public int getUpdateCount() throws SQLException
getUpdateCount
in interface Statement
SQLException
- This exception is required by the interface, but it is never thrown.execute(java.lang.String)
public boolean getMoreResults() throws SQLException
getMoreResults
in interface Statement
SQLException
- This exception is required by the interface, but it is never thrown.execute(java.lang.String)
public void setFetchDirection(int direction) throws SQLException
setFetchDirection
in interface Statement
direction
- An integer indicating the direction in which the rows of
the result set will be processed. Currently supports only FETCH_FORWARD.SQLException
- This exception is thrown if the fetch direction is not FETCH_FORWARD.public int getFetchDirection() throws SQLException
getFetchDirection
in interface Statement
SQLException
- This exception is required by the interface but it is never thrown.public void setFetchSize(int rows) throws SQLException
setFetchSize
in interface Statement
rows
- The number of rows to fetch.SQLException
- This exception is thrown if a database-access error occurs, or the
condition 0 <= rows <= this.getMaxRows() is not satisfied.public int getFetchSize() throws SQLException
getFetchSize
in interface Statement
SQLException
- This exception is required by the interface but it is never thrown.public int getResultSetConcurrency() throws SQLException
getResultSetConcurrency
in interface Statement
SQLException
- This exception is required by the interface but it is never thrown.public int getResultSetType() throws SQLException
getResultSetType
in interface Statement
SQLException
- This exception is required by the interface but it is never thrown.public void addBatch(String sql) throws SQLException
addBatch
in interface Statement
sql
- Typically this is a static SQL INSERT or UPDATE statement.SQLException
- This exception is always thrown.public void clearBatch() throws SQLException
clearBatch
in interface Statement
SQLException
- This exception is always thrown.public int[] executeBatch() throws SQLException
executeBatch
in interface Statement
SQLException
- This exception is always thrown.public Connection getConnection() throws SQLException
getConnection
in interface Statement
This
- exception is required by the interface but it is never thrown.public void addWarning(SQLWarning warning)
warning
- The warning to add to this statement.public boolean getMoreResults(int current) throws SQLException
Statement
object's next result, dealing with any current
ResultSet
object(s) according to the instructions specified by the given flag.getMoreResults
in interface Statement
current
- a Statement
constants indicating how current ResultSet
objects be dealt with.SQLException
- always thrown. This method is not supported by this driver.public ResultSet getGeneratedKeys() throws SQLException
Statement
object. If this Statement
object did not generate any keys, an empty
ResultSet
object is returned.
This method is not implemented in this driver.getGeneratedKeys
in interface Statement
SQLException
- always thrown.public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
Statement
object should
be made available for retrieval.
This method is not implemented.executeUpdate
in interface Statement
SQLException
- always thrown.public int executeUpdate(String sql, int[] columnIndexes) throws SQLException
executeUpdate
in interface Statement
SQLException
- always thrown.public int executeUpdate(String sql, String[] columnNames) throws SQLException
executeUpdate
in interface Statement
SQLException
- always thrown.public boolean execute(String sql, int autoGeneratedKeys) throws SQLException
execute
in interface Statement
SQLException
- always thrown.public boolean execute(String sql, int[] columnIndexes) throws SQLException
execute
in interface Statement
SQLException
- always thrown.public boolean execute(String sql, String[] columnNames) throws SQLException
execute
in interface Statement
SQLException
- always thrown.public int getResultSetHoldability() throws SQLException
ResultSet
objects generated by this
Statement
object.
This method is not implemented.getResultSetHoldability
in interface Statement
SQLException
- always thrown.public int numFields()
public String[] fieldNames()
public int fieldType(int i)
public String fieldFormat(int i)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |