public class SimplePayloadResultSetTranslator extends ResultSetTranslatorBase
Used as part of a JdbcDataQueryService
In the adapter configuration file this class is aliased as jdbc-simple-output which is the preferred alternative to the fully qualified classname when building your configuration.
log
Constructor and Description |
---|
SimplePayloadResultSetTranslator() |
Modifier and Type | Method and Description |
---|---|
ColumnWriter |
columnWriter() |
java.lang.String |
getColumnName() |
ColumnWriter |
getColumnWriter() |
void |
setColumnName(java.lang.String columnName)
Set the column to be used as the payload.
|
void |
setColumnWriter(ColumnWriter cw) |
void |
translate(JdbcResult source,
AdaptrisMessage target)
Translate the contents of the result set into the AdaptrisMessage object.
|
prepare
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, init, start, stop
public void translate(JdbcResult source, AdaptrisMessage target) throws java.sql.SQLException, ServiceException
ResultSetTranslator
source
- the result set from a database query executed by
JdbcDataQueryService
target
- the adaptris messagejava.sql.SQLException
- on errors accessing the result set.ServiceException
- wrapping any other exceptionpublic java.lang.String getColumnName()
public void setColumnName(java.lang.String columnName)
columnName
- the column name, if not specified then the first column is used).public ColumnWriter getColumnWriter()
public void setColumnWriter(ColumnWriter cw)
public ColumnWriter columnWriter()