Use a Data Access Development Run configuration to generate
data that shows how quickly the SQL statements in a Java application run. You can view the data
in the SQL Outline view.
Before you begin
The Java project
for your application must have support for Data Access Development
enabled. Your application must also have either of these characteristics:
- The application must contain at least one of the following items:
- A standard JDBC method that runs an SQL statement
- A call to one of the methods in the pureQuery Data interface
- An interface that declares at least one annotated method that
uses the pureQuery API
- A pureQueryXML file that contains captured SQL statements
- The application must use the Java Persistence
API or Hibernate, an object-relational mapping library for Java.
Procedure
To measure the performance of the SQL statements in a Java application:
- In the Project Explorer, right-click the Java project in which the application is located
and select Run As > Run Configurations.
- Select Data Access Development and
define a new run configuration.
- Run the application with the new run configuration.
What to do next
Examine the generated performance data. See the link "Viewing
performance data in the SQL Outline view" in the
Related Tasks section
at the end of this topic.