org.springframework.jdbc.support.lob
Class DefaultLobHandler
- public class DefaultLobHandler
- implements LobHandler
Default implementation of the LobHandler interface. Invokes the direct accessor
methods that java.sql.ResultSet and java.sql.PreparedStatement offer.
This LobHandler should work for any JDBC driver that is JDBC compliant
in terms of the spec's suggestions regarding simple BLOB and CLOB handling.
- Author:
- Juergen Hoeller
- Since: 04.12.2003
- See Also: java.sql.ResultSet.getBytes(int), java.sql.ResultSet.getBinaryStream(int), java.sql.ResultSet.getString(int), java.sql.ResultSet.getAsciiStream(int), java.sql.ResultSet.getCharacterStream(int), java.sql.PreparedStatement.setBytes(int,byte[]), java.sql.PreparedStatement.setBinaryStream(int,java.io.InputStream,int), java.sql.PreparedStatement.setString(int,java.lang.String), java.sql.PreparedStatement.setAsciiStream(int,java.io.InputStream,int), java.sql.PreparedStatement.setCharacterStream(int,java.io.Reader,int)
getBlobAsBinaryStream
public InputStream getBlobAsBinaryStream(ResultSet rs, int columnIndex)
throws java.sql.SQLException
getBlobAsBytes
public byte[] getBlobAsBytes(ResultSet rs, int columnIndex)
throws java.sql.SQLException
getClobAsAsciiStream
public InputStream getClobAsAsciiStream(ResultSet rs, int columnIndex)
throws java.sql.SQLException
getClobAsCharacterStream
public Reader getClobAsCharacterStream(ResultSet rs, int columnIndex)
throws java.sql.SQLException
getClobAsString
public String getClobAsString(ResultSet rs, int columnIndex)
throws java.sql.SQLException
getLobCreator
public LobCreator getLobCreator()