Interface TargetDatabaseConfiguration

    • Method Detail

      • isMayCommit

        boolean isMayCommit()
        If running within a container managed transaction such as within an EJB we cannot call commit() on the connection. This method should return false then.
      • initializeTargetConnection

        void initializeTargetConnection​(Connection connection,
                                        String connectorId)
                                 throws SQLException
        Called before any action is performed which may alter the state of the target data base.

        Implementing classes usually disable foreign key and other constraints temporarily.

        Throws:
        SQLException
      • finalizeTargetConnection

        void finalizeTargetConnection​(Connection connection,
                                      String connectorId)
                               throws SQLException
        Called after actions have been performed.

        Implementing classes usually re-enable foreign key and other constraints.

        Throws:
        SQLException
      • beforeInsert

        void beforeInsert​(Connection connection,
                          String connectorId,
                          TableMetaData table)
                   throws SQLException
        Called before an INSERT clause is executed. E.g., in order to disable foreign key constraints. Note that an INSERT statement may have multiple VALUES clauses.
        Throws:
        SQLException
      • beforeNewRow

        void beforeNewRow​(Connection connection,
                          String connectorId,
                          TableMetaData table)
                   throws SQLException
        Called before a new row of data (VALUES clause) is added to the INSERT statement. Note that an INSERT statement may have multiple VALUES clauses. This method will be called for every VALUES clause.
        Throws:
        SQLException