public class JDBCStatement extends Object implements Statement, DatabaseSQLCommunicationsAreaCallback
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_BLOCKED_INSERT |
static int |
TYPE_CALL |
static int |
TYPE_COMMIT |
static int |
TYPE_CONNECT |
static int |
TYPE_INSERT_UPDATE_DELETE |
static int |
TYPE_ROLLBACK |
static int |
TYPE_SELECT |
static int |
TYPE_UNKNOWN |
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
Constructor and Description |
---|
JDBCStatement(JDBCConnection conn,
String statementName,
String cursorName,
int rpbID) |
Modifier and Type | Method and Description |
---|---|
void |
addBatch(String sql)
Not implemented.
|
void |
cancel()
Not implemented.
|
void |
clearBatch()
Not implemented.
|
void |
clearWarnings()
Warning are not supported.
|
void |
close() |
boolean |
execute(String sql) |
boolean |
execute(String sql,
int autoGeneratedKeys) |
boolean |
execute(String sql,
int[] columnIndices)
Not implemented.
|
boolean |
execute(String sql,
String[] columnNames)
Not implemented.
|
int[] |
executeBatch()
Not implemented.
|
ResultSet |
executeQuery(String sql) |
int |
executeUpdate(String sql) |
int |
executeUpdate(String sql,
int autoGeneratedKeys) |
int |
executeUpdate(String sql,
int[] columnIndices)
Not implemented.
|
int |
executeUpdate(String sql,
String[] columnNames)
Not implemented.
|
Connection |
getConnection() |
int |
getFetchDirection() |
int |
getFetchSize() |
ResultSet |
getGeneratedKeys() |
int |
getMaxFieldSize()
Retrieves the maximum number of bytes that can be returned for character and binary column values in a ResultSet object produced by this Statement object.
|
int |
getMaxRows()
Retrieves the maximum number of rows that a ResultSet object produced by this Statement object can contain.
|
boolean |
getMoreResults()
Not implemented.
|
boolean |
getMoreResults(int current)
Not implemented.
|
int |
getQueryTimeout()
Retrieves the number of seconds the driver will wait for a Statement object to execute
|
ResultSet |
getResultSet() |
int |
getResultSetConcurrency()
Retrieves the result set concurrency for ResultSet objects generated by this Statement object.
|
int |
getResultSetHoldability()
Retrieves the result set holdability for ResultSet objects generated by this Statement object.
|
int |
getResultSetType() |
static int |
getStatementType(String sql) |
int |
getUpdateCount() |
SQLWarning |
getWarnings()
Not implemented, but we return null to avoid problems with existing applications
|
boolean |
isClosed() |
boolean |
isPoolable() |
void |
newSQLCommunicationsAreaData(int sqlCode,
String sqlState,
String generatedKey,
int updateCount,
int resultSetsCount) |
void |
setCatalog(String catalog) |
void |
setCursorName(String name)
Not implemented.
|
protected void |
setCursorNameInternal(String cursorName) |
void |
setEscapeProcessing(boolean enable)
Not implemented.
|
void |
setFetchDirection(int direction)
Not implemented.
|
void |
setFetchSize(int rows) |
void |
setMaxFieldSize(int max)
Not implemented.
|
void |
setMaxRows(int max)
Not implemented.
|
void |
setPoolable(boolean poolable) |
void |
setQueryTimeout(int seconds)
Not implemented.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWrapperFor, unwrap
public static final int TYPE_UNKNOWN
public static final int TYPE_INSERT_UPDATE_DELETE
public static final int TYPE_SELECT
public static final int TYPE_CALL
public static final int TYPE_COMMIT
public static final int TYPE_ROLLBACK
public static final int TYPE_CONNECT
public static final int TYPE_BLOCKED_INSERT
public JDBCStatement(JDBCConnection conn, String statementName, String cursorName, int rpbID) throws SQLException
SQLException
public static int getStatementType(String sql) throws SQLException
SQLException
public void newSQLCommunicationsAreaData(int sqlCode, String sqlState, String generatedKey, int updateCount, int resultSetsCount)
newSQLCommunicationsAreaData
in interface DatabaseSQLCommunicationsAreaCallback
public void addBatch(String sql) throws SQLException
addBatch
in interface Statement
SQLException
public void cancel() throws SQLException
cancel
in interface Statement
SQLException
public void clearBatch() throws SQLException
clearBatch
in interface Statement
SQLException
public void clearWarnings() throws SQLException
clearWarnings
in interface Statement
SQLException
public void close() throws SQLException
close
in interface Statement
SQLException
public boolean execute(String sql) throws SQLException
execute
in interface Statement
SQLException
public boolean execute(String sql, int autoGeneratedKeys) throws SQLException
execute
in interface Statement
SQLException
public boolean execute(String sql, int[] columnIndices) throws SQLException
execute
in interface Statement
SQLException
public boolean execute(String sql, String[] columnNames) throws SQLException
execute
in interface Statement
SQLException
public int[] executeBatch() throws SQLException
executeBatch
in interface Statement
SQLException
public ResultSet executeQuery(String sql) throws SQLException
executeQuery
in interface Statement
SQLException
public int executeUpdate(String sql) throws SQLException
executeUpdate
in interface Statement
SQLException
public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeUpdate
in interface Statement
SQLException
public int executeUpdate(String sql, int[] columnIndices) throws SQLException
executeUpdate
in interface Statement
SQLException
public int executeUpdate(String sql, String[] columnNames) throws SQLException
executeUpdate
in interface Statement
SQLException
public Connection getConnection() throws SQLException
getConnection
in interface Statement
SQLException
public int getFetchDirection() throws SQLException
getFetchDirection
in interface Statement
SQLException
public int getFetchSize() throws SQLException
getFetchSize
in interface Statement
SQLException
public ResultSet getGeneratedKeys() throws SQLException
getGeneratedKeys
in interface Statement
SQLException
public int getMaxFieldSize() throws SQLException
getMaxFieldSize
in interface Statement
SQLException
public int getMaxRows() throws SQLException
getMaxRows
in interface Statement
SQLException
public boolean getMoreResults() throws SQLException
getMoreResults
in interface Statement
SQLException
public boolean getMoreResults(int current) throws SQLException
getMoreResults
in interface Statement
SQLException
public int getQueryTimeout() throws SQLException
getQueryTimeout
in interface Statement
SQLException
public ResultSet getResultSet() throws SQLException
getResultSet
in interface Statement
SQLException
public int getResultSetConcurrency() throws SQLException
getResultSetConcurrency
in interface Statement
SQLException
public int getResultSetHoldability() throws SQLException
getResultSetHoldability
in interface Statement
SQLException
public int getResultSetType() throws SQLException
getResultSetType
in interface Statement
SQLException
public int getUpdateCount() throws SQLException
getUpdateCount
in interface Statement
SQLException
public SQLWarning getWarnings() throws SQLException
getWarnings
in interface Statement
SQLException
public void setCursorName(String name) throws SQLException
setCursorName
in interface Statement
SQLException
public void setEscapeProcessing(boolean enable) throws SQLException
setEscapeProcessing
in interface Statement
SQLException
public void setFetchDirection(int direction) throws SQLException
setFetchDirection
in interface Statement
SQLException
public void setFetchSize(int rows) throws SQLException
setFetchSize
in interface Statement
SQLException
public void setMaxFieldSize(int max) throws SQLException
setMaxFieldSize
in interface Statement
SQLException
public void setMaxRows(int max) throws SQLException
setMaxRows
in interface Statement
SQLException
public void setQueryTimeout(int seconds) throws SQLException
setQueryTimeout
in interface Statement
SQLException
protected void setCursorNameInternal(String cursorName)
public boolean isPoolable() throws SQLException
isPoolable
in interface Statement
SQLException
public void setPoolable(boolean poolable) throws SQLException
setPoolable
in interface Statement
SQLException
public void setCatalog(String catalog)