类 SqlScriptRunner

java.lang.Object
org.mybatis.generator.maven.SqlScriptRunner

public class SqlScriptRunner extends Object
This class is used to execute an SQL script before a code generation run if necessary. Note that this class mainly exists to support the MyBatis Generator build. It is intentionally not documented and not supported.
  • 构造器详细资料

    • SqlScriptRunner

      public SqlScriptRunner(String sourceFile, String driver, String url, String userId, String password) throws org.apache.maven.plugin.MojoExecutionException
      抛出:
      org.apache.maven.plugin.MojoExecutionException
  • 方法详细资料

    • executeScript

      public void executeScript() throws org.apache.maven.plugin.MojoExecutionException
      抛出:
      org.apache.maven.plugin.MojoExecutionException
    • getDriver

      public String getDriver()
    • setDriver

      public void setDriver(String driver)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
    • setLog

      public void setLog(org.apache.maven.plugin.logging.Log log)