|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.jtopenlite.database.jdbc.JDBCStatement
public class JDBCStatement
| Field Summary | |
|---|---|
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
|
| 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 | |
|---|---|
JDBCStatement(JDBCConnection conn,
String statementName,
String cursorName,
int rpbID)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public JDBCStatement(JDBCConnection conn,
String statementName,
String cursorName,
int rpbID)
throws SQLException
SQLException| Method Detail |
|---|
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 StatementSQLException
public void cancel()
throws SQLException
cancel in interface StatementSQLException
public void clearBatch()
throws SQLException
clearBatch in interface StatementSQLException
public void clearWarnings()
throws SQLException
clearWarnings in interface StatementSQLException
public void close()
throws SQLException
close in interface StatementSQLException
public boolean execute(String sql)
throws SQLException
execute in interface StatementSQLException
public boolean execute(String sql,
int autoGeneratedKeys)
throws SQLException
execute in interface StatementSQLException
public boolean execute(String sql,
int[] columnIndices)
throws SQLException
execute in interface StatementSQLException
public boolean execute(String sql,
String[] columnNames)
throws SQLException
execute in interface StatementSQLException
public int[] executeBatch()
throws SQLException
executeBatch in interface StatementSQLException
public ResultSet executeQuery(String sql)
throws SQLException
executeQuery in interface StatementSQLException
public int executeUpdate(String sql)
throws SQLException
executeUpdate in interface StatementSQLException
public int executeUpdate(String sql,
int autoGeneratedKeys)
throws SQLException
executeUpdate in interface StatementSQLException
public int executeUpdate(String sql,
int[] columnIndices)
throws SQLException
executeUpdate in interface StatementSQLException
public int executeUpdate(String sql,
String[] columnNames)
throws SQLException
executeUpdate in interface StatementSQLException
public Connection getConnection()
throws SQLException
getConnection in interface StatementSQLException
public int getFetchDirection()
throws SQLException
getFetchDirection in interface StatementSQLException
public int getFetchSize()
throws SQLException
getFetchSize in interface StatementSQLException
public ResultSet getGeneratedKeys()
throws SQLException
getGeneratedKeys in interface StatementSQLException
public int getMaxFieldSize()
throws SQLException
getMaxFieldSize in interface StatementSQLException
public int getMaxRows()
throws SQLException
getMaxRows in interface StatementSQLException
public boolean getMoreResults()
throws SQLException
getMoreResults in interface StatementSQLException
public boolean getMoreResults(int current)
throws SQLException
getMoreResults in interface StatementSQLException
public int getQueryTimeout()
throws SQLException
getQueryTimeout in interface StatementSQLException
public ResultSet getResultSet()
throws SQLException
getResultSet in interface StatementSQLException
public int getResultSetConcurrency()
throws SQLException
getResultSetConcurrency in interface StatementSQLException
public int getResultSetHoldability()
throws SQLException
getResultSetHoldability in interface StatementSQLException
public int getResultSetType()
throws SQLException
getResultSetType in interface StatementSQLException
public int getUpdateCount()
throws SQLException
getUpdateCount in interface StatementSQLException
public SQLWarning getWarnings()
throws SQLException
getWarnings in interface StatementSQLException
public void setCursorName(String name)
throws SQLException
setCursorName in interface StatementSQLException
public void setEscapeProcessing(boolean enable)
throws SQLException
setEscapeProcessing in interface StatementSQLException
public void setFetchDirection(int direction)
throws SQLException
setFetchDirection in interface StatementSQLException
public void setFetchSize(int rows)
throws SQLException
setFetchSize in interface StatementSQLException
public void setMaxFieldSize(int max)
throws SQLException
setMaxFieldSize in interface StatementSQLException
public void setMaxRows(int max)
throws SQLException
setMaxRows in interface StatementSQLException
public void setQueryTimeout(int seconds)
throws SQLException
setQueryTimeout in interface StatementSQLExceptionpublic boolean isClosed()
protected void setCursorNameInternal(String cursorName)
public boolean isPoolable()
throws SQLException
SQLException
public void setPoolable(boolean poolable)
throws SQLException
SQLExceptionpublic void setCatalog(String catalog)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||