java.lang.Object
io.ebean.ddlrunner.DdlRunner
Runs DDL scripts.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstruct with a script name (for logging) and flag indicating if auto commit is used (in which case errors are allowed).Create specifying the auto commit behaviour (for the database platform).Create specifying the database platform by name. -
Method Summary
Modifier and TypeMethodDescriptionrunAll(String content, Connection connection) Parse the content into sql statements and execute them in a transaction.intrunNonTransactional(Connection connection) Run any non-transactional statements from the just parsed script.intrunNonTransactional(Connection connection, List<String> nonTransactional) Run the non-transactional statements with auto commit true.
-
Field Details
-
logger
-
-
Constructor Details
-
DdlRunner
Construct with a script name (for logging) and flag indicating if auto commit is used (in which case errors are allowed). -
DdlRunner
Create specifying the database platform by name. -
DdlRunner
Create specifying the auto commit behaviour (for the database platform).
-
-
Method Details
-
runAll
Parse the content into sql statements and execute them in a transaction.- Returns:
- The non-transactional statements that should execute later.
- Throws:
SQLException
-
runNonTransactional
Run any non-transactional statements from the just parsed script. -
runNonTransactional
Run the non-transactional statements with auto commit true.
-