properties
Properties for the connection.
getDB2XAConnection
Formats:
public DB2XAConnection getDB2XAConnection(String user,
String password,
java.util.Properties properties)
throws java.sql.SQLException
public DB2XAConnection getDB2XAConnection(
org.ietf.jgss.GSSCredential gssCredential,
java.util.Properties properties)
throws java.sql.SQLException
Establishes the initial untrusted connection in a heterogeneous pooling
environment.
The first form getDB2PooledConnection provides a user ID and password. The
second form of getDB2XAConnection is for connections that use Kerberos
security.
Parameter descriptions:
user
The authorization ID that is used to establish the connection.
password
The password for the authorization ID that is used to establish the
connection.
gssCredential
If the data source uses Kerberos security, specifies a delegated credential
that is passed from another principal.
properties
Properties for the connection.
Related concepts
“Example of a distributed transaction that uses JTA methods” on page 468
Related tasks
“Creating and deploying DataSource objects” on page 19
DB2Xml interface
The com.ibm.db2.jcc.DB2Xml interface is used for declaring Java objects for use
with the DB2 XML data type.
DB2Xml methods
The following method is defined only for the IBM Data Server Driver for JDBC
and SQLJ.
closeDB2Xml
Format:
public void closeDB2Xml()
throws SQLException
Releases the resources that are associated with a com.ibm.jcc.DB2Xml object.
getDB2AsciiStream
Format:
368 Application Programming Guide and Reference for Java
™