public interface SQLRuntime
By using wrapper classes for the returned Statement
,
PreparedStatement
and ResultSet
objects it is
possible to customize the driver's implementation.
The following methods are called directly by Information Services:
ResultSet : |
setFetchSize , getFetchSize , next ,
getDate , getTime , getTimestamp ,
getInt , getLong , getFloat ,
getDouble , getBoolean ,
getCharacterStream , getBinaryStream ,
getString , wasNull , getStatement ,
getMetaData , close |
Statement : |
cancel , close , executeUpdate ,
executeQuery |
PreparedStatement : |
close , addBatch , executeUpdate ,
executeBatch , setNull , setDate ,
setTime , setTimestamp ,
setCharacterStream , setBinaryStream ,
setObject |
BasicSQLRuntime
,
PreparedStatementWrapper
,
StatementWrapper
,
ResultSetWrapper
Modifier and Type | Method and Description |
---|---|
java.sql.ResultSet |
executeQuery(java.lang.String sql)
Executes a SQL query.
|
void |
executeUpdate(java.lang.String sql)
Executes a SQL statement.
|
java.sql.Connection |
getConnection() |
JDBCContext |
getContext() |
java.sql.CallableStatement |
prepareCall(java.lang.String sql)
Creates a
CallableStatement object for calling database stored
procedures. |
java.sql.PreparedStatement |
prepareQuery(java.lang.String sql) |
java.sql.PreparedStatement |
prepareUpdate(java.lang.String sql) |
void |
setConnection(java.sql.Connection conn)
Sets the JDBC database connection.
|
void |
setContext(JDBCContext c)
Sets the JDBC context.
|
void setConnection(java.sql.Connection conn)
conn
- connectionjava.sql.Connection getConnection()
void setContext(JDBCContext c)
c
- JDBCContextJDBCContext getContext()
void executeUpdate(java.lang.String sql) throws java.sql.SQLException
sql
- SQLjava.sql.SQLException
- SQLExceptionjava.sql.PreparedStatement prepareUpdate(java.lang.String sql) throws java.sql.SQLException
sql
- SQLjava.sql.SQLException
- SQLExceptionjava.sql.PreparedStatement prepareQuery(java.lang.String sql) throws java.sql.SQLException
sql
- SQLjava.sql.SQLException
- SQLExceptionjava.sql.ResultSet executeQuery(java.lang.String sql) throws java.sql.SQLException
sql
- SQLjava.sql.SQLException
- SQLExceptionjava.sql.CallableStatement prepareCall(java.lang.String sql) throws java.sql.SQLException
CallableStatement
object for calling database stored
procedures.sql
- SQLjava.sql.SQLException
- SQLExceptionCopyright © 2000-2020 TIBCO Software Inc. All Rights Reserved.