EasyManuals Logo

IBM DB2 User Manual

IBM DB2
585 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #309 background imageLoading...
Page #309 background image
Table 82. Summary of sqlj.runtime classes
Class name Purpose
AsciiStream A class for handling an input stream whose bytes should be interpreted as ASCII.
BinaryStream A class for handling an input stream whose bytes should be interpreted as binary.
CharacterStream A class for handling an input stream whose bytes should be interpreted as
Character.
DefaultRuntime Implemented by SQLJ to satisfy the expected runtime behavior of SQLJ for most
JVM environments. This class is for internal use only and is not described in this
documentation.
ExecutionContext Implemented when an SQLJ execution context is declared, to control the execution
of SQL operations.
RuntimeContext Defines system-specific services that are provided by the runtime environment. This
class is for internal use only and is not described in this documentation.
SQLNullException Derived from the java.sql.SQLException class. An sqlj.runtime.SQLNullException
is thrown when an SQL NULL value is fetched into a host identifier with a Java
primitive type.
StreamWrapper Wraps a java.io.InputStream instance.
UnicodeStream A class for handling an input stream whose bytes should be interpreted as Unicode.
sqlj.runtime.ConnectionContext interface
The sqlj.runtime.ConnectionContext interface provides a set of methods that
manage SQL operations that are performed during a session with a specific data
source.
Translation of an SQLJ connection declaration clause causes SQLJ to create a
connection context class. A connection context object maintains a JDBC Connection
object on which dynamic SQL operations can be performed. A connection context
object also maintains a default ExecutionContext object.
Variables
CLOSE_CONNECTION
Format:
public static final boolean CLOSE_CONNECTION=true;
A constant that can be passed to the close method. It indicates that the
underlying JDBC Connection object should be closed.
KEEP_CONNECTION
Format:
public static final boolean KEEP_CONNECTION=false;
A constant that can be passed to the close method. It indicates that the
underlying JDBC Connection object should not be closed.
Methods
close()
Format:
public abstract void close() throws SQLException
Performs the following functions:
v Releases all resources that are used by the given connection context object
Chapter 7. JDBC and SQLJ reference information 293

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM DB2 and is the answer not in the manual?

IBM DB2 Specifications

General IconGeneral
DeveloperIBM
Initial Release1983
LicenseProprietary
Written inC, C++
CategoryDatabase Management System (RDBMS)
Operating SystemLinux, Windows
Programming LanguagesC, C++
Data ModelsRelational
EditionsCommunity, Standard, Advanced
Key Featureshigh availability, scalability