public class JDBCStatement extends java.lang.Object implements java.sql.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 |
Constructor and Description |
---|
JDBCStatement(JDBCConnection conn,
java.lang.String statementName,
java.lang.String cursorName,
int rpbID) |
Modifier and Type | Method and Description |
---|---|
void |
addBatch(java.lang.String sql)
Not implemented.
|
void |
cancel()
Not implemented.
|
void |
clearBatch()
Not implemented.
|
void |
clearWarnings()
Warning are not supported.
|
void |
close() |
boolean |
execute(java.lang.String sql) |
boolean |
execute(java.lang.String sql,
int autoGeneratedKeys) |
boolean |
execute(java.lang.String sql,
int[] columnIndices)
Not implemented.
|
boolean |
execute(java.lang.String sql,
java.lang.String[] columnNames)
Not implemented.
|
int[] |
executeBatch()
Not implemented.
|
java.sql.ResultSet |
executeQuery(java.lang.String sql) |
int |
executeUpdate(java.lang.String sql) |
int |
executeUpdate(java.lang.String sql,
int autoGeneratedKeys) |
int |
executeUpdate(java.lang.String sql,
int[] columnIndices)
Not implemented.
|
int |
executeUpdate(java.lang.String sql,
java.lang.String[] columnNames)
Not implemented.
|
java.sql.Connection |
getConnection() |
int |
getFetchDirection() |
int |
getFetchSize() |
java.sql.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
|
java.sql.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(java.lang.String sql) |
int |
getUpdateCount() |
java.sql.SQLWarning |
getWarnings()
Not implemented, but we return null to avoid problems with existing applications
|
boolean |
isClosed() |
boolean |
isPoolable() |
void |
newSQLCommunicationsAreaData(int sqlCode,
java.lang.String sqlState,
java.lang.String generatedKey,
int updateCount,
int resultSetsCount) |
void |
setCatalog(java.lang.String catalog) |
void |
setCursorName(java.lang.String name)
Not implemented.
|
protected void |
setCursorNameInternal(java.lang.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.
|
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, java.lang.String statementName, java.lang.String cursorName, int rpbID) throws java.sql.SQLException
java.sql.SQLException
public static int getStatementType(java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
public void newSQLCommunicationsAreaData(int sqlCode, java.lang.String sqlState, java.lang.String generatedKey, int updateCount, int resultSetsCount)
newSQLCommunicationsAreaData
in interface DatabaseSQLCommunicationsAreaCallback
public void addBatch(java.lang.String sql) throws java.sql.SQLException
addBatch
in interface java.sql.Statement
java.sql.SQLException
public void cancel() throws java.sql.SQLException
cancel
in interface java.sql.Statement
java.sql.SQLException
public void clearBatch() throws java.sql.SQLException
clearBatch
in interface java.sql.Statement
java.sql.SQLException
public void clearWarnings() throws java.sql.SQLException
clearWarnings
in interface java.sql.Statement
java.sql.SQLException
public void close() throws java.sql.SQLException
close
in interface java.sql.Statement
java.sql.SQLException
public boolean execute(java.lang.String sql) throws java.sql.SQLException
execute
in interface java.sql.Statement
java.sql.SQLException
public boolean execute(java.lang.String sql, int autoGeneratedKeys) throws java.sql.SQLException
execute
in interface java.sql.Statement
java.sql.SQLException
public boolean execute(java.lang.String sql, int[] columnIndices) throws java.sql.SQLException
execute
in interface java.sql.Statement
java.sql.SQLException
public boolean execute(java.lang.String sql, java.lang.String[] columnNames) throws java.sql.SQLException
execute
in interface java.sql.Statement
java.sql.SQLException
public int[] executeBatch() throws java.sql.SQLException
executeBatch
in interface java.sql.Statement
java.sql.SQLException
public java.sql.ResultSet executeQuery(java.lang.String sql) throws java.sql.SQLException
executeQuery
in interface java.sql.Statement
java.sql.SQLException
public int executeUpdate(java.lang.String sql) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
java.sql.SQLException
public int executeUpdate(java.lang.String sql, int autoGeneratedKeys) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
java.sql.SQLException
public int executeUpdate(java.lang.String sql, int[] columnIndices) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
java.sql.SQLException
public int executeUpdate(java.lang.String sql, java.lang.String[] columnNames) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
java.sql.SQLException
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface java.sql.Statement
java.sql.SQLException
public int getFetchDirection() throws java.sql.SQLException
getFetchDirection
in interface java.sql.Statement
java.sql.SQLException
public int getFetchSize() throws java.sql.SQLException
getFetchSize
in interface java.sql.Statement
java.sql.SQLException
public java.sql.ResultSet getGeneratedKeys() throws java.sql.SQLException
getGeneratedKeys
in interface java.sql.Statement
java.sql.SQLException
public int getMaxFieldSize() throws java.sql.SQLException
getMaxFieldSize
in interface java.sql.Statement
java.sql.SQLException
public int getMaxRows() throws java.sql.SQLException
getMaxRows
in interface java.sql.Statement
java.sql.SQLException
public boolean getMoreResults() throws java.sql.SQLException
getMoreResults
in interface java.sql.Statement
java.sql.SQLException
public boolean getMoreResults(int current) throws java.sql.SQLException
getMoreResults
in interface java.sql.Statement
java.sql.SQLException
public int getQueryTimeout() throws java.sql.SQLException
getQueryTimeout
in interface java.sql.Statement
java.sql.SQLException
public java.sql.ResultSet getResultSet() throws java.sql.SQLException
getResultSet
in interface java.sql.Statement
java.sql.SQLException
public int getResultSetConcurrency() throws java.sql.SQLException
getResultSetConcurrency
in interface java.sql.Statement
java.sql.SQLException
public int getResultSetHoldability() throws java.sql.SQLException
getResultSetHoldability
in interface java.sql.Statement
java.sql.SQLException
public int getResultSetType() throws java.sql.SQLException
getResultSetType
in interface java.sql.Statement
java.sql.SQLException
public int getUpdateCount() throws java.sql.SQLException
getUpdateCount
in interface java.sql.Statement
java.sql.SQLException
public java.sql.SQLWarning getWarnings() throws java.sql.SQLException
getWarnings
in interface java.sql.Statement
java.sql.SQLException
public void setCursorName(java.lang.String name) throws java.sql.SQLException
setCursorName
in interface java.sql.Statement
java.sql.SQLException
public void setEscapeProcessing(boolean enable) throws java.sql.SQLException
setEscapeProcessing
in interface java.sql.Statement
java.sql.SQLException
public void setFetchDirection(int direction) throws java.sql.SQLException
setFetchDirection
in interface java.sql.Statement
java.sql.SQLException
public void setFetchSize(int rows) throws java.sql.SQLException
setFetchSize
in interface java.sql.Statement
java.sql.SQLException
public void setMaxFieldSize(int max) throws java.sql.SQLException
setMaxFieldSize
in interface java.sql.Statement
java.sql.SQLException
public void setMaxRows(int max) throws java.sql.SQLException
setMaxRows
in interface java.sql.Statement
java.sql.SQLException
public void setQueryTimeout(int seconds) throws java.sql.SQLException
setQueryTimeout
in interface java.sql.Statement
java.sql.SQLException
public boolean isClosed()
isClosed
in interface java.sql.Statement
protected void setCursorNameInternal(java.lang.String cursorName)
public boolean isPoolable() throws java.sql.SQLException
isPoolable
in interface java.sql.Statement
java.sql.SQLException
public void setPoolable(boolean poolable) throws java.sql.SQLException
setPoolable
in interface java.sql.Statement
java.sql.SQLException
public void setCatalog(java.lang.String catalog)