Class HookContext

java.lang.Object
org.apache.ibatis.migration.hook.HookContext

public class HookContext extends Object
  • Constructor Details

  • Method Details

    • getConnection

      public Connection getConnection() throws SQLException
      Returns:
      A new Connection to the database. The returned connection must be closed.
      Throws:
      SQLException - If a database access error occurs.
    • executeSql

      public void executeSql(Reader reader)
      Parameters:
      reader - Source of the SQL to execute.
    • executeSql

      public void executeSql(String sql)
      Parameters:
      sql - SQL to execute.
    • getChange

      public Change getChange()
      Returns:
      Returns an instance of Change object for an each hook; null otherwise.