AO SQL Changelog

ao-sql-1.0.0

Release Notes

  • New project for SQL and JDBC utilities split from AO Lang and AOCode Public.
  • New utility class Connections for working with java.sql.Connection.
  • New utility class SQLExceptions for working with java.sql.SQLException.
  • SQLUtility now accepts Function to generate exception instead of Class. Using lambdas is faster than reflection, and the compiler can verify the presence of the constructor.
  • New class SQLStreamables for sending Timestamp objects across the wire. These methods were previously part of StreamableInput and StreamableOutput.
  • Now registering exception types for use with Throwables.newSurrogate(…) that supports creating new instances of throwables in order to have caller stack trace. When wrapped, the original throwable is the cause of the new throwable. When not wrapped, the original throwable is used directly and caller stack trace is lost.

    This is used to maintain exception types and states across thread boundaries, such as when an exception cause is obtained from an ExecutionException.