Package org.springframework.jdbc.core.support

Examples of org.springframework.jdbc.core.support.AbstractLobStreamingResultSetExtractor


  @Transactional(readOnly=true)
  public void streamImage(final String name, final OutputStream contentStream) throws DataAccessException {
    getJdbcTemplate().query(
        "SELECT content FROM imagedb WHERE image_name=?", new Object[] {name},
        new AbstractLobStreamingResultSetExtractor() {
          protected void handleNoRowFound() throws LobRetrievalFailureException {
            throw new EmptyResultDataAccessException(
                "Image with name '" + name + "' not found in database", 1);
          }
          public void streamData(ResultSet rs) throws SQLException, IOException {
View Full Code Here

TOP

Related Classes of org.springframework.jdbc.core.support.AbstractLobStreamingResultSetExtractor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.