Deprecated API
Contents
-
Deprecated Exception ClassesException ClassDescriptionWe have been increasingly using custom subtypes of
SQLException
to represent different conditions, such as when no row is returned. This allows the simple use of standard catch blocks to handle different conditions accordingly. However, wrapping the original exception defeats this, as it just become a genericSQLException
, albeit with SQL STATE and such copied from the original exception.The primary purpose of wrapping exceptions was to attach the SQL statement being processed at the time of failure. This statement is only used in error reporting, specifically via
ErrorPrinter
. We have created a new way to accomplish this, without altering or wrapping any exceptions: register an exception and corresponding SQL statement directly withErrorPrinter
, which will then automatically be included in error reports.
-
Deprecated MethodsMethodDescriptionPlease use
SQLUtility.newTimestamp(long, int, java.util.function.Function)
, typically with lambda constructor referencePlease useSQLUtility.newUnmodifiableTimestamp(long, int, java.util.function.Function)
, typically with lambda constructor referencePlease useSQLUtility.printTable(java.lang.Object[], java.lang.Iterable, java.lang.Appendable, boolean, boolean[])
when possible, as it may provide for more efficiency on large datasets.Please useSQLUtility.printTable(java.lang.Object[], java.lang.Iterable, java.lang.Appendable, boolean, boolean[])
when possible, as it may provide for more efficiency on large datasets.Please useSQLUtility.toTimestamp(long, int, java.sql.Timestamp, java.util.function.Function)
, typically with lambda constructor referenceAs of JDK version 1.1,As of JDK version 1.1,As of JDK version 1.1,As of JDK version 1.1,As of JDK version 1.1,As of JDK version 1.1,
-
Deprecated ConstructorsConstructorDescriptioninstead use the constructor
Timestamp(long millis)
Please useErrorPrinter.addSql(java.lang.Throwable, java.lang.String)
instead of wrapping exceptions.Please useErrorPrinter.addSql(java.lang.Throwable, java.lang.String)
instead of wrapping exceptions.Please useErrorPrinter.addSql(java.lang.Throwable, java.sql.PreparedStatement)
instead of wrapping exceptions.