if (connection == null) {
getLogger().warn("Could not get a conneciton");
return;
}
DatabaseMetaData meta = connection.getMetaData();
Util util = new Util();
util.setLoggerRepository(repository);
supportsGetGeneratedKeys = util.supportsGetGeneratedKeys(meta);
supportsBatchUpdates = util.supportsBatchUpdates(meta);
dialectCode = Util.discoverSQLDialect(meta);
} catch (SQLException se) {
getLogger().warn("Could not discover the dialect to use.", se);
}
}