Package org.mybatis.generator.maven
Class SqlScriptRunner
java.lang.Object
org.mybatis.generator.maven.SqlScriptRunner
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcloseConnection(Connection connection) private voidcloseStatement(Statement statement) voidprivate BufferedReaderprivate StringvoidvoidsetLog(org.apache.maven.plugin.logging.Log log) voidsetPassword(String password)
-
Field Details
-
driver
-
url
-
userid
-
password
-
sourceFile
-
log
private org.apache.maven.plugin.logging.Log log
-
-
Constructor Details
-
Method Details
-
executeScript
public void executeScript() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getDriver
-
setDriver
-
getPassword
-
setPassword
-
closeConnection
-
closeStatement
-
readStatement
- Throws:
IOException
-
setLog
public void setLog(org.apache.maven.plugin.logging.Log log) -
getScriptReader
private BufferedReader getScriptReader() throws org.apache.maven.plugin.MojoExecutionException, IOException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionIOException
-