private Connection getConnection ( AlpineQueryManager aqm ) { final JDOConnection jdoConnection = aqm . getPersistenceManager ( ) . getDataStoreConnection ( ) ; if ( jdoConnection != null ) { if ( jdoConnection . getNativeConnection ( ) instanceof Connection ) { return ( Connection ) jdoConnection . getNativeConnection ( ) ; } } return null ; }
This connection should never be closed .