Example usage for org.springframework.jdbc.support.lob LobHandler getBlobAsBytes

List of usage examples for org.springframework.jdbc.support.lob LobHandler getBlobAsBytes

Introduction

In this page you can find the example usage for org.springframework.jdbc.support.lob LobHandler getBlobAsBytes.

Prototype

@Nullable
byte[] getBlobAsBytes(ResultSet rs, int columnIndex) throws SQLException;

Source Link

Document

Retrieve the given column as bytes from the given ResultSet.

Usage

From source file:org.sakaiproject.orm.ibatis.support.BlobByteArrayTypeHandler.java

protected Object getResultInternal(ResultSet rs, int index, LobHandler lobHandler) throws SQLException {
    return lobHandler.getBlobAsBytes(rs, index);
}

From source file:ch.iceage.icedms.persistence.jdbc.rowmapper.AbstractGenericRowMapper.java

@Override
public void mapContentRow(Content content, String tableAlias, ResultSet rs, int rowNum)
        throws SQLException, LockedResourceException {
    LobHandler lobHandler = new DefaultLobHandler();
    content.setContent(lobHandler.getBlobAsBytes(rs, tableAlias + "_content"));
}