10.5.14 setInterfaceMethodTrace(boolean flag)
- Organization of this subsection
(1) Function
This method specifies whether JDBC interface method traces are to be acquired. For details about the JDBC interface method traces, see 7.7.1 JDBC interface method traces.
If you acquire JDBC interface method traces, you must specify an output destination with the setLogWriter method.
(2) Format
public synchronized void setInterfaceMethodTrace(boolean flag) throws SQLException
(3) Arguments
- boolean flag
-
Specifies whether JDBC interface method traces are to be acquired:
-
true: Acquire JDBC interface method traces.
-
false: Do not acquire JDBC interface method traces.
If this method is not executed, the JDBC driver assumes false.
-
(4) Return value
None.
(5) Exceptions
None.
(6) Notes
Whether JDBC interface method traces are to be acquired cannot be specified for each instance individually. The setting specified by this method applies to all DataSource and ConnectionPoolDataSource instances that exist at the time this setting is specified and thereafter.