public class StringColumnTranslator extends FormattableColumnTranslator implements ColumnWriter
In the adapter configuration file this class is aliased as jdbc-type-string-column-translator which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
StringColumnTranslator() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
translate(JdbcResultRow rs,
int column)
Translate the column into a String.
|
java.lang.String |
translate(JdbcResultRow rs,
java.lang.String columnName)
Translate the column into a String.
|
void |
write(JdbcResultRow rs,
int column,
java.io.OutputStream out)
Write the column into the specified outputstream.
|
void |
write(JdbcResultRow rs,
java.lang.String columnName,
java.io.OutputStream out)
Write the column into the specified outputstream.
|
getFormat, setFormat, toString
public java.lang.String translate(JdbcResultRow rs, int column) throws java.sql.SQLException, java.io.IOException
ColumnTranslator
translate
in interface ColumnTranslator
rs
- the result setcolumn
- the column indexjava.sql.SQLException
java.io.IOException
public java.lang.String translate(JdbcResultRow rs, java.lang.String columnName) throws java.sql.SQLException, java.io.IOException
ColumnTranslator
translate
in interface ColumnTranslator
rs
- the result setcolumnName
- the column namejava.sql.SQLException
java.io.IOException
public void write(JdbcResultRow rs, int column, java.io.OutputStream out) throws java.sql.SQLException, java.io.IOException
ColumnWriter
write
in interface ColumnWriter
rs
- the result setcolumn
- the column indexout
- the outputstreamjava.sql.SQLException
java.io.IOException
public void write(JdbcResultRow rs, java.lang.String columnName, java.io.OutputStream out) throws java.sql.SQLException, java.io.IOException
ColumnWriter
write
in interface ColumnWriter
rs
- the result setcolumnName
- the column nameout
- the outputstreamjava.sql.SQLException
java.io.IOException