The latest Java-API is always compatible with database frameworks of the same minor version.
For example API-3.2.3 is compatible with database framework 3.2 but not with database framework 3.0 or 3.3
It is although recommended to always use the latest release of the API to build your tools for utPLSQL.
There might be some features which are not available in previous versions of utPLSQL.
These "optional features" are listed in the enum org.utplsql.api.compatibility.OptionalFeatures
and their availability can be checked against a connection or Version-object:
To handle downwards-compatibility, java-api provides an easy to use CompatiblityProxy, which is instantiated with a connection.
It will check the database-version of utPLSQL and is used in several other features like TestRunner and ReporterFactory.
You can also ask it for the database-version.
try (Connection conn = DriverManager.getConnection(url)) {
CompatiblityProxy proxy = new CompatibilityProxy( conn );
Version version = proxy.getUtPlsqlVersion();
} catch (SQLException e) {
e.printStackTrace();
}
The java-api provides a ReporterFactory you can use to inject your own implementations of (java-side) reporters or reporter-handlers.
It also provides a more generic approach to Reporter-handling.
If you request the Reporter-Factory for a Reporter it has no specific implementation for it will just
return an instance of a DefaultReporter with the given name as SQL-Type, assuming
that it exists in the database. Therefore, you can address custom reporters without the need
of a specific java-side implementation.