|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILobHandler
Interface that abstracts potentially database-specific creation and retrieval of large binary fields and large text fields.
Method Summary | |
---|---|
byte[] |
getBlobAsBytes(ResultSet rs,
int columnIndex)
Retrieve the given column as bytes from the given ResultSet. |
byte[] |
getBlobAsBytes(ResultSet rs,
String columnName)
Retrieve the given column as bytes from the given ResultSet. |
void |
init()
Initialize lob handler |
void |
setBlobAsBytes(PreparedStatement ps,
int paramIndex,
byte[] content)
Set the given content as bytes on the given statement, using the given parameter index. |
Method Detail |
---|
void init() throws Exception
Exception
void setBlobAsBytes(PreparedStatement ps, int paramIndex, byte[] content) throws SQLException
ps
- the PreparedStatement to the set the content onparamIndex
- the parameter index to usecontent
- the content as byte array
SQLException
- if thrown by JDBC methodsbyte[] getBlobAsBytes(ResultSet rs, int columnIndex) throws SQLException
rs
- the ResultSet to retrieve the content fromcolumnIndex
- the column index to use
SQLException
- if thrown by JDBC methodsbyte[] getBlobAsBytes(ResultSet rs, String columnName) throws SQLException
rs
- the ResultSet to retrieve the content fromcolumnName
- the column name to use
SQLException
- if thrown by JDBC methods
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |