private String determineDatabaseProductName ( Connection conn ) { try { final String databaseProductName = conn . getMetaData ( ) . getDatabaseProductName ( ) . toLowerCase ( ) ; LOGGER . debug ( "Database product: {}" , databaseProductName ) ; return databaseProductName ; } catch ( SQLException se ) { LOGGER . warn ( "Problem determining database product!" , se ) ; return null ; } }
Tries to determine the product name of the database .