AO Database Connectivity Changelog

ao-dbc-2.0.0-SNAPSHOT

Snapshot Notes

  • createObject now unwraps cause from InvocationTargetException.
  • Integrated support of Throwable.addSuppressed(Throwable):
    1. DatabaseConnection.rollback() now throws SQLException, instead of logging and returning.
    2. New DatabaseConnection.rollback(Throwable) that adds any exceptions occuring during rollback to the given throwable via Throwable.addSuppressed(Throwable).
    3. DatabaseConnection.rollbackAndClose() now throws SQLException, instead of logging and returning.
    4. New DatabaseConnection.rollbackAndClose(Throwable) that adds any exceptions occuring during rollback to the given throwable via Throwable.addSuppressed(Throwable).
    5. Database.getConnection(…) now adds any exceptions occuring during clean-up (close and/or release connection) to the first throwable via Throwable.addSuppressed(Throwable).
    6. DatabaseConnection now implements AutoCloseable, with the expectation to by used via try-with-resources.
  • Any exception during SQLData initialization will now clean-up properly (close and/or release connection).
  • execute*(…) methods now also rollback on all types of Throwable except ThreadDeath and NoRowException, versus just handling Exception and below.
  • AutoCloseable implementation moved to a new class CloseableDatabase, which extends Database. This allows the return of Database in contexts where it is not expected to be closed.

ao-dbc-1.4.1

Release Notes

  • Fixed bug in releaseConnection that would fail when trying to restore original type maps on a closed connection. Now checks that the connection is not closed first.

ao-dbc-1.4.0

Release Notes

  • Minimum Java version changed from 1.7 to 1.8.
  • Reduced use of property substitutions in pom.xml. This is to help 3rd-party parsers that fail to perform full Maven-compatible substitutions.
  • Database is now AutoCloseable, which closes the underlying pool.

ao-dbc-1.3.0

Release Notes

ao-dbc-1.2.1

Release Notes

  • Minimum Java version changed from 1.6 to 1.7.
  • Using managed dependencies:
    1. This project uses managed dependencies.
    2. This project's managed dependencies may also be imported by other projects.

ao-dbc-1.2.0

Release Notes

  • New set of execute*Update methods that mirror the short form of execute*Query methods, but that do not operate read-only. This alleviates most of the uses of the longer form of execute*Query. Less is more - now get back to work!
  • Now supports the automatic loading of SQLData implementations via ServiceLoader.
  • Now calling PreparedStatement.setObject(int, java.lang.Object) to give the database driver a chance to decide what to do.

ao-dbc-1.1.3

Release Notes

  • Updated dependencies.

ao-dbc-1.1.2

Release Notes

  • New AO OSS Parent POM to simplify pom.xml files.
  • Project documentation moved to per-project book in SemanticCMS format.
  • Added changelog as top-level project link.

ao-dbc-1.1.1

Release Notes

  • Improved Javadoc formatting.
  • Improved README formatting.

ao-dbc-1.1.0

Release Notes

  • Improved Javadoc formatting.
  • Improved README formatting.
  • Each lock object now a small empty class to help identify lock contention.

    The lock contention profiler in NetBeans is just showing "java.lang.Object" all over, and can't seem to get from the lock object id to the actual object in the heap dump using OQL (id not found).

ao-dbc-1.0

Release Notes

  • Project moved to GitHub and Maven.