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.SQLExceptionpublic static int getStatementType(java.lang.String sql)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void newSQLCommunicationsAreaData(int sqlCode,
java.lang.String sqlState,
java.lang.String generatedKey,
int updateCount,
int resultSetsCount)
newSQLCommunicationsAreaData in interface DatabaseSQLCommunicationsAreaCallbackpublic void addBatch(java.lang.String sql)
throws java.sql.SQLException
addBatch in interface java.sql.Statementjava.sql.SQLExceptionpublic void cancel()
throws java.sql.SQLException
cancel in interface java.sql.Statementjava.sql.SQLExceptionpublic void clearBatch()
throws java.sql.SQLException
clearBatch in interface java.sql.Statementjava.sql.SQLExceptionpublic void clearWarnings()
throws java.sql.SQLException
clearWarnings in interface java.sql.Statementjava.sql.SQLExceptionpublic void close()
throws java.sql.SQLException
close in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean execute(java.lang.String sql)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean execute(java.lang.String sql,
int autoGeneratedKeys)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean execute(java.lang.String sql,
int[] columnIndices)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean execute(java.lang.String sql,
java.lang.String[] columnNames)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLExceptionpublic int[] executeBatch()
throws java.sql.SQLException
executeBatch in interface java.sql.Statementjava.sql.SQLExceptionpublic java.sql.ResultSet executeQuery(java.lang.String sql)
throws java.sql.SQLException
executeQuery in interface java.sql.Statementjava.sql.SQLExceptionpublic int executeUpdate(java.lang.String sql)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLExceptionpublic int executeUpdate(java.lang.String sql,
int autoGeneratedKeys)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLExceptionpublic int executeUpdate(java.lang.String sql,
int[] columnIndices)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLExceptionpublic int executeUpdate(java.lang.String sql,
java.lang.String[] columnNames)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLExceptionpublic java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface java.sql.Statementjava.sql.SQLExceptionpublic int getFetchDirection()
throws java.sql.SQLException
getFetchDirection in interface java.sql.Statementjava.sql.SQLExceptionpublic int getFetchSize()
throws java.sql.SQLException
getFetchSize in interface java.sql.Statementjava.sql.SQLExceptionpublic java.sql.ResultSet getGeneratedKeys()
throws java.sql.SQLException
getGeneratedKeys in interface java.sql.Statementjava.sql.SQLExceptionpublic int getMaxFieldSize()
throws java.sql.SQLException
getMaxFieldSize in interface java.sql.Statementjava.sql.SQLExceptionpublic int getMaxRows()
throws java.sql.SQLException
getMaxRows in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean getMoreResults()
throws java.sql.SQLException
getMoreResults in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean getMoreResults(int current)
throws java.sql.SQLException
getMoreResults in interface java.sql.Statementjava.sql.SQLExceptionpublic int getQueryTimeout()
throws java.sql.SQLException
getQueryTimeout in interface java.sql.Statementjava.sql.SQLExceptionpublic java.sql.ResultSet getResultSet()
throws java.sql.SQLException
getResultSet in interface java.sql.Statementjava.sql.SQLExceptionpublic int getResultSetConcurrency()
throws java.sql.SQLException
getResultSetConcurrency in interface java.sql.Statementjava.sql.SQLExceptionpublic int getResultSetHoldability()
throws java.sql.SQLException
getResultSetHoldability in interface java.sql.Statementjava.sql.SQLExceptionpublic int getResultSetType()
throws java.sql.SQLException
getResultSetType in interface java.sql.Statementjava.sql.SQLExceptionpublic int getUpdateCount()
throws java.sql.SQLException
getUpdateCount in interface java.sql.Statementjava.sql.SQLExceptionpublic java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
getWarnings in interface java.sql.Statementjava.sql.SQLExceptionpublic void setCursorName(java.lang.String name)
throws java.sql.SQLException
setCursorName in interface java.sql.Statementjava.sql.SQLExceptionpublic void setEscapeProcessing(boolean enable)
throws java.sql.SQLException
setEscapeProcessing in interface java.sql.Statementjava.sql.SQLExceptionpublic void setFetchDirection(int direction)
throws java.sql.SQLException
setFetchDirection in interface java.sql.Statementjava.sql.SQLExceptionpublic void setFetchSize(int rows)
throws java.sql.SQLException
setFetchSize in interface java.sql.Statementjava.sql.SQLExceptionpublic void setMaxFieldSize(int max)
throws java.sql.SQLException
setMaxFieldSize in interface java.sql.Statementjava.sql.SQLExceptionpublic void setMaxRows(int max)
throws java.sql.SQLException
setMaxRows in interface java.sql.Statementjava.sql.SQLExceptionpublic void setQueryTimeout(int seconds)
throws java.sql.SQLException
setQueryTimeout in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean isClosed()
isClosed in interface java.sql.Statementprotected void setCursorNameInternal(java.lang.String cursorName)
public boolean isPoolable()
throws java.sql.SQLException
isPoolable in interface java.sql.Statementjava.sql.SQLExceptionpublic void setPoolable(boolean poolable)
throws java.sql.SQLException
setPoolable in interface java.sql.Statementjava.sql.SQLExceptionpublic void setCatalog(java.lang.String catalog)