private void getMetaData ( final Connection conn ) { try { final DatabaseMetaData dmd = conn . getMetaData ( ) ; this . databaseProductName = dmd . getDatabaseProductName ( ) ; this . databaseProductVersion = dmd . getDatabaseProductVersion ( ) ; this . driverName = dmd . getDriverName ( ) ; this . driverVersion = dmd . getDriverVersion ( ) ; this . userName = dmd . getUserName ( ) ; this . dbUrl = dmd . getURL ( ) ; this . dbmdSupportsOuterJoins = dmd . supportsOuterJoins ( ) ; } catch ( SQLException sqle ) { LOG . error ( "Error getting database meta data." , sqle ) ; } }
Gets meta data about the connection .