public abstract class AbstractLobHandler extends Object implements LobHandler
LobHandler
implementations.
Implements all accessor methods for column names through a column lookup and delegating to the corresponding accessor that takes a column index.
ResultSet.findColumn(java.lang.String)
Constructor and Description |
---|
AbstractLobHandler() |
Modifier and Type | Method and Description |
---|---|
InputStream |
getBlobAsBinaryStream(ResultSet rs,
String columnName)
Retrieve the given column as binary stream from the given ResultSet.
|
byte[] |
getBlobAsBytes(ResultSet rs,
String columnName)
Retrieve the given column as bytes from the given ResultSet.
|
InputStream |
getClobAsAsciiStream(ResultSet rs,
String columnName)
Retrieve the given column as ASCII stream from the given ResultSet.
|
Reader |
getClobAsCharacterStream(ResultSet rs,
String columnName)
Retrieve the given column as character stream from the given ResultSet.
|
String |
getClobAsString(ResultSet rs,
String columnName)
Retrieve the given column as String from the given ResultSet.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBlobAsBinaryStream, getBlobAsBytes, getClobAsAsciiStream, getClobAsCharacterStream, getClobAsString, getLobCreator
public byte[] getBlobAsBytes(ResultSet rs, String columnName) throws SQLException
LobHandler
ResultSet.getBytes
or work with
ResultSet.getBlob
, depending on the database and driver.getBlobAsBytes
in interface LobHandler
rs
- the ResultSet to retrieve the content fromcolumnName
- the column name to usenull
in case of SQL NULLSQLException
- if thrown by JDBC methodsResultSet.getBytes(int)
public InputStream getBlobAsBinaryStream(ResultSet rs, String columnName) throws SQLException
LobHandler
ResultSet.getBinaryStream
or work with
ResultSet.getBlob
, depending on the database and driver.getBlobAsBinaryStream
in interface LobHandler
rs
- the ResultSet to retrieve the content fromcolumnName
- the column name to usenull
in case of SQL NULLSQLException
- if thrown by JDBC methodsResultSet.getBinaryStream(int)
public String getClobAsString(ResultSet rs, String columnName) throws SQLException
LobHandler
ResultSet.getString
or work with
ResultSet.getClob
, depending on the database and driver.getClobAsString
in interface LobHandler
rs
- the ResultSet to retrieve the content fromcolumnName
- the column name to usenull
in case of SQL NULLSQLException
- if thrown by JDBC methodsResultSet.getString(int)
public InputStream getClobAsAsciiStream(ResultSet rs, String columnName) throws SQLException
LobHandler
ResultSet.getAsciiStream
or work with
ResultSet.getClob
, depending on the database and driver.getClobAsAsciiStream
in interface LobHandler
rs
- the ResultSet to retrieve the content fromcolumnName
- the column name to usenull
in case of SQL NULLSQLException
- if thrown by JDBC methodsResultSet.getAsciiStream(int)
public Reader getClobAsCharacterStream(ResultSet rs, String columnName) throws SQLException
LobHandler
ResultSet.getCharacterStream
or work with
ResultSet.getClob
, depending on the database and driver.getClobAsCharacterStream
in interface LobHandler
rs
- the ResultSet to retrieve the content fromcolumnName
- the column name to useSQLException
- if thrown by JDBC methodsResultSet.getCharacterStream(int)