|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.spotfire.ws.im.ds.sql.BasicSQLRuntime
public class BasicSQLRuntime
A basic implementation of the SQLRuntime interface.
StatementWrapper,
PreparedStatementWrapper,
ResultSetWrapper| Constructor Summary | |
|---|---|
BasicSQLRuntime()
Creates a new BasicSQLRuntime instance. |
|
| Method Summary | |
|---|---|
protected void |
closeStatement(Statement stmt)
Closes a JDBC Statement object. |
protected Statement |
createStatement()
Creates a new JDBC Statement instance. |
ResultSet |
executeQuery(String sql)
Executes a SQL query. |
void |
executeUpdate(String sql)
Executes a SQL statement. |
Connection |
getConnection()
Returns the JDBC database connection. |
JDBCContext |
getContext()
Returns the JDBC context. |
CallableStatement |
prepareCall(String sql)
Creates a CallableStatement object for calling database
stored procedures. |
PreparedStatement |
prepareQuery(String sql)
Creates a precompiled SQL statement for a parameterized query. |
PreparedStatement |
prepareUpdate(String sql)
Creates a precompiled SQL statement. |
void |
setConnection(Connection conn)
Sets the JDBC database connection. |
void |
setContext(JDBCContext s)
Sets the JDBC context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicSQLRuntime()
BasicSQLRuntime instance.
| Method Detail |
|---|
public void setConnection(Connection conn)
SQLRuntime
setConnection in interface SQLRuntimepublic Connection getConnection()
SQLRuntime
getConnection in interface SQLRuntimepublic void setContext(JDBCContext s)
SQLRuntime
setContext in interface SQLRuntimepublic JDBCContext getContext()
SQLRuntime
getContext in interface SQLRuntimepublic void executeUpdate(String sql)
SQLRuntime
executeUpdate in interface SQLRuntimepublic PreparedStatement prepareUpdate(String sql)
SQLRuntime
prepareUpdate in interface SQLRuntimepublic PreparedStatement prepareQuery(String sql)
SQLRuntime
prepareQuery in interface SQLRuntimepublic ResultSet executeQuery(String sql)
SQLRuntime
executeQuery in interface SQLRuntimepublic CallableStatement prepareCall(String sql)
SQLRuntimeCallableStatement object for calling database
stored procedures.
prepareCall in interface SQLRuntimeprotected Statement createStatement()
Statement instance.
Statement objectprotected void closeStatement(Statement stmt)
Statement object.
stmt - a Statement object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||