| Modifier and Type | Field and Description |
|---|---|
protected DdlParser |
ddlParser |
protected boolean |
expectErrors |
protected static org.slf4j.Logger |
logger |
protected String |
scriptName |
| Constructor and Description |
|---|
DdlRunner(boolean expectErrors,
String scriptName)
Construct with a script name (for logging) and flag indicating if errors are expected.
|
| Modifier and Type | Method and Description |
|---|---|
int |
runAll(String content,
com.avaje.ebeaninternal.api.SpiEbeanServer server)
Parse the content into sql statements and execute them in a transaction.
|
int |
runStatements(List<String> statements,
com.avaje.ebeaninternal.api.SpiEbeanServer server)
Execute all the statements in a single transaction.
|
protected static final org.slf4j.Logger logger
protected final String scriptName
protected final boolean expectErrors
public int runAll(String content, com.avaje.ebeaninternal.api.SpiEbeanServer server)
public int runStatements(List<String> statements, com.avaje.ebeaninternal.api.SpiEbeanServer server)
Copyright © 2016. All rights reserved.