public void getTraceLevel()
throws java.sql.SQLException
Returns the trace level for the trace records that are generated by the trace
controller, if it is set. Otherwise, getTraceLevel returns -1 (TRACE_ALL).
unsetLogWriter
Format:
public abstract void unsetLogWriter()
throws java.sql.SQLException
Disables the global log writer override for future connections.
suspendTrace
Format:
public void suspendTrace()
throws java.sql.SQLException
Suspends all global, Connection-level, or DataSource-level traces for current
and future connections. suspendTrace can be called when the global log writer
is enabled or disabled.
resumeTrace
Format:
public void resumeTrace()
throws java.sql.SQLException
Resumes all global, Connection-level, or DataSource-level traces for current and
future connections. resumeTrace can be called when the global log writer is
enabled or disabled. If the global log writer is disabled, resumeTrace resumes
Connection-level or DataSource-level traces. If the global log writer is enabled,
resumeTrace resumes the global trace.
DB2XADataSource class
DB2XADataSource is a factory for XADataSource objects. An object that implements
this interface is registered with a naming service that is based on the Java Naming
and Directory Interface (JNDI).
The com.ibm.db2.jcc.DB2XADataSource class extends the
com.ibm.db2.jcc.DB2BaseDataSource class, and implements the
javax.sql.XADataSource, java.io.Serializable, and javax.naming.Referenceable
interfaces.
DB2XADataSource methods
getDB2TrustedXAConnection
Formats:
public Object[] getDB2TrustedXAConnection(String user,
String password,
java.util.Properties properties)
throws java.sql.SQLException
public Object[] getDB2TrustedXAConnection(
java.util.Properties properties)
throws java.sql.SQLException
public Object[] getDB2TrustedXAConnection(
org.ietf.jgss.GSSCredential gssCredential,
java.util.Properties properties)
throws java.sql.SQLException
366 Application Programming Guide and Reference for Java
â„¢