1 16 17 package org.springframework.jdbc.support.lob; 18 19 import java.io.InputStream ; 20 import java.io.Reader ; 21 import java.sql.ResultSet ; 22 import java.sql.SQLException ; 23 24 65 public interface LobHandler { 66 67 77 byte[] getBlobAsBytes(ResultSet rs, String columnName) throws SQLException ; 78 79 89 byte[] getBlobAsBytes(ResultSet rs, int columnIndex) throws SQLException ; 90 91 101 InputStream getBlobAsBinaryStream(ResultSet rs, String columnName) throws SQLException ; 102 103 113 InputStream getBlobAsBinaryStream(ResultSet rs, int columnIndex) throws SQLException ; 114 115 125 String getClobAsString(ResultSet rs, String columnName) throws SQLException ; 126 127 137 String getClobAsString(ResultSet rs, int columnIndex) throws SQLException ; 138 139 149 InputStream getClobAsAsciiStream(ResultSet rs, String columnName) throws SQLException ; 150 151 161 InputStream getClobAsAsciiStream(ResultSet rs, int columnIndex) throws SQLException ; 162 163 173 Reader getClobAsCharacterStream(ResultSet rs, String columnName) throws SQLException ; 174 175 185 Reader getClobAsCharacterStream(ResultSet rs, int columnIndex) throws SQLException ; 186 187 194 LobCreator getLobCreator(); 195 196 } 197 | Popular Tags |