public Document getDocument ( Long documentId ) throws DataAccessException { try { db . openConnection ( ) ; return this . getDocument ( documentId , false ) ; } catch ( SQLException ex ) { throw new DataAccessException ( "Failed to load document: " + documentId , ex ) ; } finally { db . closeConnection ( ) ; } }
Not for update . Opens a new connection .