Class SimplePayloadResultSetTranslator

    • Constructor Detail

      • SimplePayloadResultSetTranslator

        public SimplePayloadResultSetTranslator()
    • Method Detail

      • translate

        public void translate​(JdbcResult source,
                              AdaptrisMessage target)
                       throws java.sql.SQLException,
                              ServiceException
        Description copied from interface: ResultSetTranslator
        Translate the contents of the result set into the AdaptrisMessage object. Only use this method for JdbcResults that are guaranteed to fit in memory.
        Parameters:
        source - the result set from a database query executed by JdbcDataQueryService
        target - the adaptris message
        Throws:
        java.sql.SQLException - on errors accessing the result set.
        ServiceException - wrapping any other exception
      • getColumnName

        public java.lang.String getColumnName()
      • setColumnName

        public void setColumnName​(java.lang.String columnName)
        Set the column to be used as the payload.
        Parameters:
        columnName - the column name, if not specified then the first column is used).
      • setColumnWriter

        public void setColumnWriter​(ColumnWriter cw)