Class AbstractLobHandler
java.lang.Object
org.springframework.jdbc.support.lob.AbstractLobHandler
- All Implemented Interfaces:
LobHandler
- Direct Known Subclasses:
DefaultLobHandler
@Deprecated(since="6.2")
public abstract class AbstractLobHandler
extends Object
implements LobHandler
Deprecated.
Abstract base class for
LobHandler implementations.
Implements all accessor methods for column names through a column lookup and delegating to the corresponding accessor that takes a column index.
- Since:
- 1.2
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBlobAsBinaryStream(ResultSet rs, String columnName) Deprecated.Retrieve the given column as binary stream from the given ResultSet.byte @Nullable []getBlobAsBytes(ResultSet rs, String columnName) Deprecated.Retrieve the given column as bytes from the given ResultSet.getClobAsAsciiStream(ResultSet rs, String columnName) Deprecated.Retrieve the given column as ASCII stream from the given ResultSet.getClobAsCharacterStream(ResultSet rs, String columnName) Deprecated.Retrieve the given column as character stream from the given ResultSet.getClobAsString(ResultSet rs, String columnName) Deprecated.Retrieve the given column as String from the given ResultSet.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LobHandler
getBlobAsBinaryStream, getBlobAsBytes, getClobAsAsciiStream, getClobAsCharacterStream, getClobAsString, getLobCreator
-
Constructor Details
-
AbstractLobHandler
public AbstractLobHandler()Deprecated.
-
-
Method Details
-
getBlobAsBytes
Deprecated.Description copied from interface:LobHandlerRetrieve the given column as bytes from the given ResultSet. Might simply invokeResultSet.getBytesor work withResultSet.getBlob, depending on the database and driver.- Specified by:
getBlobAsBytesin interfaceLobHandler- Parameters:
rs- the ResultSet to retrieve the content fromcolumnName- the column name to use- Returns:
- the content as byte array, or
nullin case of SQL NULL - Throws:
SQLException- if thrown by JDBC methods- See Also:
-
getBlobAsBinaryStream
public @Nullable InputStream getBlobAsBinaryStream(ResultSet rs, String columnName) throws SQLException Deprecated.Description copied from interface:LobHandlerRetrieve the given column as binary stream from the given ResultSet. Might simply invokeResultSet.getBinaryStreamor work withResultSet.getBlob, depending on the database and driver.- Specified by:
getBlobAsBinaryStreamin interfaceLobHandler- Parameters:
rs- the ResultSet to retrieve the content fromcolumnName- the column name to use- Returns:
- the content as binary stream, or
nullin case of SQL NULL - Throws:
SQLException- if thrown by JDBC methods- See Also:
-
getClobAsString
Deprecated.Description copied from interface:LobHandlerRetrieve the given column as String from the given ResultSet. Might simply invokeResultSet.getStringor work withResultSet.getClob, depending on the database and driver.- Specified by:
getClobAsStringin interfaceLobHandler- Parameters:
rs- the ResultSet to retrieve the content fromcolumnName- the column name to use- Returns:
- the content as String, or
nullin case of SQL NULL - Throws:
SQLException- if thrown by JDBC methods- See Also:
-
getClobAsAsciiStream
public @Nullable InputStream getClobAsAsciiStream(ResultSet rs, String columnName) throws SQLException Deprecated.Description copied from interface:LobHandlerRetrieve the given column as ASCII stream from the given ResultSet. Might simply invokeResultSet.getAsciiStreamor work withResultSet.getClob, depending on the database and driver.- Specified by:
getClobAsAsciiStreamin interfaceLobHandler- Parameters:
rs- the ResultSet to retrieve the content fromcolumnName- the column name to use- Returns:
- the content as ASCII stream, or
nullin case of SQL NULL - Throws:
SQLException- if thrown by JDBC methods- See Also:
-
getClobAsCharacterStream
Deprecated.Description copied from interface:LobHandlerRetrieve the given column as character stream from the given ResultSet. Might simply invokeResultSet.getCharacterStreamor work withResultSet.getClob, depending on the database and driver.- Specified by:
getClobAsCharacterStreamin interfaceLobHandler- Parameters:
rs- the ResultSet to retrieve the content fromcolumnName- the column name to use- Returns:
- the content as character stream
- Throws:
SQLException- if thrown by JDBC methods- See Also:
-
SqlBinaryValueandSqlCharacterValue