LEDGE-218: validate connection cached connection before usage, close it
& attempt to reconnect if necessary.
LEDGE-218: make exceptions in setApplicationName non-fatal
LEDGE-218: tread carefully around setClientInfo("ApplicationName")
because we've seen strange low-level exceptions from Postgres here.
attempt to recover when opening connection fails, or the connection
fails the validation attempt right after opening. Number of retires is
hard-coded at 1.
LEDGE-218: added missing null check
LEDGE-218: Connection.isValid is not implemented in JDBC driver for
Postgres 9.1, perform a simple query instead. That's what current master
PG JDBC driver does.
LEDGE-218: make retry count and validation query configurable.
Implemented object oriented configuration.
release 1.0.16.2