org.mybatis.generator.maven
Class SqlScriptRunner

java.lang.Object
  extended by 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.

Author:
Jeff Butler

Constructor Summary
SqlScriptRunner(String sourceFile, String driver, String url, String userId, String password)
           
 
Method Summary
 void executeScript()
           
 String getDriver()
           
 String getPassword()
           
 void setDriver(String driver)
           
 void setLog(org.apache.maven.plugin.logging.Log log)
           
 void setPassword(String password)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlScriptRunner

public SqlScriptRunner(String sourceFile,
                       String driver,
                       String url,
                       String userId,
                       String password)
                throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException
Method Detail

executeScript

public void executeScript()
                   throws org.apache.maven.plugin.MojoExecutionException
Throws:
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)


Copyright © 2010-2012 MyBatis.org. All Rights Reserved.