public void discoverConnnectionProperties ( ) { Connection connection = null ; try { connection = getConnection ( ) ; if ( connection == null ) { getLogger ( ) . warn ( "Could not get a conneciton" ) ; return ; } DatabaseMetaData meta = connection . getMetaData ( ) ; Util util = new Util ( ) ; util . setLoggerRepository ( repository ) ; if ( overriddenSupportsGetGeneratedKeys != null ) { supportsGetGeneratedKeys = overriddenSupportsGetGeneratedKeys . booleanValue ( ) ; } else { 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 ) ; } finally { DBHelper . closeConnection ( connection ) ; } }
Learn relevant information about this connection source .