Class JdbcDataCaptureServiceImpl

    • Constructor Detail

      • JdbcDataCaptureServiceImpl

        public JdbcDataCaptureServiceImpl()
    • Method Detail

      • stopService

        protected void stopService()
        Description copied from class: JdbcService
        Stop the service.

        This is called after before the connection is stopped

        Specified by:
        stopService in class JdbcService
      • closeJdbcService

        protected void closeJdbcService()
        Description copied from class: JdbcService
        Close the service.

        This is called before the connection is closed

        Specified by:
        closeJdbcService in class JdbcService
      • setStatement

        public void setStatement​(java.lang.String s)
        SQL statement to perform.
        Parameters:
        s - the statement.
      • getStatement

        public java.lang.String getStatement()
        The configured Statement.
        Returns:
        the SQL statement.
      • saveReturnedKeys

        public boolean saveReturnedKeys()
      • setSaveReturnedKeys

        public void setSaveReturnedKeys​(java.lang.Boolean save)
        Store any return value from the SQL statement as metadata.
        Parameters:
        save - the falg.
      • getSaveReturnedKeys

        public java.lang.Boolean getSaveReturnedKeys()
        Get the configured flag.
        Returns:
        the flag.
      • getRowsUpdatedMetadataKey

        public java.lang.String getRowsUpdatedMetadataKey()
      • setRowsUpdatedMetadataKey

        public void setRowsUpdatedMetadataKey​(java.lang.String key)
        Set the metadata key which will contain the number of rows updated by this service.

        The precise value will depend on the statement(s) being executed; this is simply an aggregation of the values returned by Statement.executeUpdate(String).

        Parameters:
        key - the metadata key, if set this metadata will contain the number of rows affected.
      • updateMetadata

        protected void updateMetadata​(AdaptrisMessage msg,
                                      long value)
      • saveKeys

        protected void saveKeys​(AdaptrisMessage msg,
                                java.sql.Statement stmt)
                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException