Class JdbcIteratingDataCaptureServiceImpl

    • Constructor Detail

      • JdbcIteratingDataCaptureServiceImpl

        public JdbcIteratingDataCaptureServiceImpl()
    • Method Detail

      • doService

        public void doService​(AdaptrisMessage msg)
                       throws ServiceException
        Description copied from interface: Service

        Apply the service to the message.

        Parameters:
        msg - the AdaptrisMessage to process
        Throws:
        ServiceException - wrapping any underlying Exceptions
      • executeUpdate

        protected abstract long executeUpdate​(java.sql.PreparedStatement insert)
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • finishUpdate

        protected abstract long finishUpdate​(java.sql.PreparedStatement insert)
                                      throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getNamespaceContext

        public KeyValuePairSet getNamespaceContext()
        Returns:
        the namespaceContext
      • setIterationXpath

        public void setIterationXpath​(java.lang.String xpath)

        An Xpath that can be iterated on.

        An Iteration Xpath defines some repeating element or value in the payload.

        Parameters:
        xpath - the xpath
        See Also:
        setIterates(Boolean)
      • getIterationXpath

        public java.lang.String getIterationXpath()
        Get the configured iteration xpath.
        Returns:
        the xpath.
      • setIterates

        public void setIterates​(java.lang.Boolean iterates)

        Set the service to iterate on the given xpath.

        If set to true, then it is expected that there is a configured iteration xpath available for use. If this is not the case, then results are undefined, and depends on the underlying Xpath implementation

        Parameters:
        iterates - the flag.
        See Also:
        setIterationXpath(String)
      • getIterates

        public java.lang.Boolean getIterates()
        Get the configured iteration flag.
        Returns:
        the flag.