/** * Delegates to handleNoRowFound, handleMultipleRowsFound and streamData, * according to the ResultSet state. Converts an IOException thrown by * streamData to a LobRetrievalFailureException. * @see #handleNoRowFound * @see #handleMultipleRowsFound * @see #streamData * @see org.springframework.jdbc.LobRetrievalFailureException */ @Override @Nullable public final T extractData(ResultSet rs) throws SQLException, DataAccessException { if (!rs.next()) { handleNoRowFound(); } else { try { streamData(rs); if (rs.next()) { handleMultipleRowsFound(); } } catch (IOException ex) { throw new LobRetrievalFailureException("Couldn't stream LOB content", ex); } } return null; }
/** * Delegates to handleNoRowFound, handleMultipleRowsFound and streamData, * according to the ResultSet state. Converts an IOException thrown by * streamData to a LobRetrievalFailureException. * @see #handleNoRowFound * @see #handleMultipleRowsFound * @see #streamData * @see org.springframework.jdbc.LobRetrievalFailureException */ @Override @Nullable public final T extractData(ResultSet rs) throws SQLException, DataAccessException { if (!rs.next()) { handleNoRowFound(); } else { try { streamData(rs); if (rs.next()) { handleMultipleRowsFound(); } } catch (IOException ex) { throw new LobRetrievalFailureException("Couldn't stream LOB content", ex); } } return null; }
/** * Delegates to handleNoRowFound, handleMultipleRowsFound and streamData, * according to the ResultSet state. Converts an IOException thrown by * streamData to a LobRetrievalFailureException. * @see #handleNoRowFound * @see #handleMultipleRowsFound * @see #streamData * @see org.springframework.jdbc.LobRetrievalFailureException */ public final Object extractData(ResultSet rs) throws SQLException, DataAccessException { if (!rs.next()) { handleNoRowFound(); } else { try { streamData(rs); if (rs.next()) { handleMultipleRowsFound(); } } catch (IOException ex) { throw new LobRetrievalFailureException("Couldn't stream LOB content", ex); } } return null; }