Package mbg.test.common.util
Class SqlScriptRunner
java.lang.Object
mbg.test.common.util.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 StringvoidvoidsetPassword(String password)
-
Field Details
-
driver
-
url
-
userid
-
password
-
sourceFile
-
-
Constructor Details
-
Method Details
-
executeScript
- Throws:
Exception
-
getDriver
-
setDriver
-
getPassword
-
setPassword
-
closeConnection
-
closeStatement
-
readStatement
- Throws:
IOException
-
getScriptReader
- Throws:
Exception
-