|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.jdbc.support.lob.AbstractLobHandler
public abstract class AbstractLobHandler
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.
ResultSet.findColumn(java.lang.String)| Constructor Summary | |
|---|---|
AbstractLobHandler()
|
|
| Method Summary | |
|---|---|
java.io.InputStream |
getBlobAsBinaryStream(java.sql.ResultSet rs,
java.lang.String columnName)
Retrieve the given column as binary stream from the given ResultSet. |
byte[] |
getBlobAsBytes(java.sql.ResultSet rs,
java.lang.String columnName)
Retrieve the given column as bytes from the given ResultSet. |
java.io.InputStream |
getClobAsAsciiStream(java.sql.ResultSet rs,
java.lang.String columnName)
Retrieve the given column as ASCII stream from the given ResultSet. |
java.io.Reader |
getClobAsCharacterStream(java.sql.ResultSet rs,
java.lang.String columnName)
Retrieve the given column as character stream from the given ResultSet. |
java.lang.String |
getClobAsString(java.sql.ResultSet rs,
java.lang.String columnName)
Retrieve the given column as String from the given ResultSet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.jdbc.support.lob.LobHandler |
|---|
getBlobAsBinaryStream, getBlobAsBytes, getClobAsAsciiStream, getClobAsCharacterStream, getClobAsString, getLobCreator |
| Constructor Detail |
|---|
public AbstractLobHandler()
| Method Detail |
|---|
public byte[] getBlobAsBytes(java.sql.ResultSet rs,
java.lang.String columnName)
throws java.sql.SQLException
LobHandlerResultSet.getBytes or work with
ResultSet.getBlob, depending on the database and driver.
getBlobAsBytes in interface LobHandlerrs - the ResultSet to retrieve the content fromcolumnName - the column name to use
null in case of SQL NULL
java.sql.SQLException - if thrown by JDBC methodsResultSet.getBytes(int)
public java.io.InputStream getBlobAsBinaryStream(java.sql.ResultSet rs,
java.lang.String columnName)
throws java.sql.SQLException
LobHandlerResultSet.getBinaryStream or work with
ResultSet.getBlob, depending on the database and driver.
getBlobAsBinaryStream in interface LobHandlerrs - the ResultSet to retrieve the content fromcolumnName - the column name to use
null in case of SQL NULL
java.sql.SQLException - if thrown by JDBC methodsResultSet.getBinaryStream(int)
public java.lang.String getClobAsString(java.sql.ResultSet rs,
java.lang.String columnName)
throws java.sql.SQLException
LobHandlerResultSet.getString or work with
ResultSet.getClob, depending on the database and driver.
getClobAsString in interface LobHandlerrs - the ResultSet to retrieve the content fromcolumnName - the column name to use
null in case of SQL NULL
java.sql.SQLException - if thrown by JDBC methodsResultSet.getString(int)
public java.io.InputStream getClobAsAsciiStream(java.sql.ResultSet rs,
java.lang.String columnName)
throws java.sql.SQLException
LobHandlerResultSet.getAsciiStream or work with
ResultSet.getClob, depending on the database and driver.
getClobAsAsciiStream in interface LobHandlerrs - the ResultSet to retrieve the content fromcolumnName - the column name to use
null in case of SQL NULL
java.sql.SQLException - if thrown by JDBC methodsResultSet.getAsciiStream(int)
public java.io.Reader getClobAsCharacterStream(java.sql.ResultSet rs,
java.lang.String columnName)
throws java.sql.SQLException
LobHandlerResultSet.getCharacterStream or work with
ResultSet.getClob, depending on the database and driver.
getClobAsCharacterStream in interface LobHandlerrs - the ResultSet to retrieve the content fromcolumnName - the column name to use
java.sql.SQLException - if thrown by JDBC methodsResultSet.getCharacterStream(int)
|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||