@ Override public Blob loadForID ( String id ) throws SQLException { Connection c = dataSource . getConnection ( ) ; PreparedStatement preparedStatement = c . prepareStatement ( loadStatement ( ) ) ; preparedStatement . setString ( 1 , id ) ; ResultSet r = preparedStatement . executeQuery ( ) ; if ( r . wasNull ( ) || ! r . next ( ) ) { return null ; } else { Blob first = r . getBlob ( 2 ) ; return first ; } }
Load an ndarray blob given an id