How do find debugging problems related to JDBC API?
Answer / aditi
A good way to find out what JDBC calls are doing is to
enable JDBC tracing. The JDBC trace contains a detailed
listing of the activity occurring in the system that is
related to JDBC operations.
If you use the DriverManager facility to establish your
database connection, you use the DriverManager.setLogWriter
method to enable tracing of JDBC operations. If you use a
DataSource object to get a connection, you use the
DataSource.setLogWriter method to enable tracing. (For
pooled connections, you use the
ConnectionPoolDataSource.setLogWriter method, and for
connections that can participate in distributed
transactions, you use the XADataSource.setLogWriter method.)
| Is This Answer Correct ? | 1 Yes | 0 No |
What are the functions of the jdbc connection interface?
How many types of jdbc drivers are available?
How to rollback a JDBC transaction?
How can we maintain the integrity of a database by using jdbc?
r u used any design patterns in your project?
Does jpa use jdbc?
can we define indexes on a foreign key? Explain pros and cons?
How does jdbc connect to database?
How does JDBC API helps us in achieving loose coupling between Java Program and JDBC Drivers API?
What is metadata in java programming?
What is JDBC Savepoint? How to use it?
When does the result for an sql statement return null?