uk.org.ogsadai.converters.resultset
Interface ColumnStrategy
- All Known Implementing Classes:
- BinaryColumnStrategy, BinaryColumnStrategy, NumberColumnStrategy, NumberColumnStrategy, TextColumnStrategy, TextColumnStrategy, UnknownColumnStrategy, UnknownColumnStrategy, UnsupportedColumnStrategy, UnsupportedColumnStrategy
- public interface ColumnStrategy
A column strategy is responsible for converting the data from a single column
of a java.sql.ResultSet into string.
- Author:
- The OGSA-DAI Project Team
|
Method Summary |
void |
convertField(java.lang.StringBuffer output,
java.sql.ResultSet rs,
int column)
Convert a single field from the current row of the result set into string
and appends them to the output string buffer. |
convertField
public void convertField(java.lang.StringBuffer output,
java.sql.ResultSet rs,
int column)
throws java.sql.SQLException,
java.io.IOException
- Convert a single field from the current row of the result set into string
and appends them to the output string buffer.
- Parameters:
output - output stream to write the converted bytesrs - result set containing the fieldcolumn - index of the column within the current row containing the
field
- Throws:
java.sql.SQLException - if a database error occurs during the processing of the
result set
java.io.IOException - if there is an error with accessing streams used in conversion