Class JdbcQueryListener

All Implemented Interfaces:
FrankElement, HasApplicationContext, HasName, HasPhysicalDestination, IConfigurable, IHasProcessState, IListener, IPeekableListener, IPullingListener, IScopeProvider, IXAEnabled, NameAware, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle

@Deprecated(forRemoval=true, since="7.6.0") @ConfigurationWarning("Please replace with JdbcTableListener for ease of configuration and improved manageability") public class JdbcQueryListener extends JdbcListener
Deprecated, for removal: This API element is subject to removal in a future version.
Database Listener that operates on a table having at least a key and a status field.
Since:
4.7
  • Constructor Details

    • JdbcQueryListener

      public JdbcQueryListener()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • configure

      public void configure() throws ConfigurationException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: IConfigurable
      Configure this component.

      configure() is called once at startup of the framework in the configure method of the owner of this IConfigurable. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in the configure(), to improve performance.

      In the case of a container, this will propagate the configure signal to all components that apply.

      Specified by:
      configure in interface IConfigurable
      Overrides:
      configure in class JdbcListener
      Throws:
      ConfigurationException - in case it was not able to configure the component.
    • setSelectQuery

      public void setSelectQuery(String string)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Query that returns a row to be processed. Must contain a key field and optionally a message field.
      Overrides:
      setSelectQuery in class JdbcListener
    • setUpdateStatusToProcessedQuery

      public void setUpdateStatusToProcessedQuery(String query)
      Deprecated, for removal: This API element is subject to removal in a future version.
      SQL statement to set the status of a row to 'processed'. Must contain one parameter, that is set to the value of the key
    • setUpdateStatusToErrorQuery

      public void setUpdateStatusToErrorQuery(String query)
      Deprecated, for removal: This API element is subject to removal in a future version.
      SQL statement to set the status of a row to 'error'. Must contain one parameter, that is set to the value of the key
      Default value
      same as updateStatusToProcessedQuery
    • setUpdateStatusToInProcessQuery

      public void setUpdateStatusToInProcessQuery(String query)
      Deprecated, for removal: This API element is subject to removal in a future version.
      SQL statement to set the status of a row to 'in process'. Must contain one parameter, that is set to the value of the key. Can be left emtpy if database has SKIP LOCKED functionality and the Receiver can be (and is) set to Required or RequiresNew.
    • setRevertInProcessStatusQuery

      public void setRevertInProcessStatusQuery(String query)
      Deprecated, for removal: This API element is subject to removal in a future version.
      SQL statement to set the status of a row to 'available'. Must contain one parameter, that is set to the value of the key. Only used in rollbacks, when updateStatusToInProcessQuery is specified