public class SchemaGenerator extends Object implements Work
Modifier and Type | Class and Description |
---|---|
static class |
SchemaGenerator.Mode
The installation mode.
|
Modifier and Type | Field and Description |
---|---|
private Configuration |
cfg |
private DbEngine |
dbEngine |
private Dialect |
dialect |
private List<String> |
ignoredSql |
private static org.slf4j.Logger |
log |
private SchemaGenerator.Mode |
mode |
private ProgressReporter |
progress |
Constructor and Description |
---|
SchemaGenerator(Configuration cfg,
Dialect dialect,
DbEngine dbEngine,
SchemaGenerator.Mode mode,
ProgressReporter progress)
Create a new schema generator.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(Connection connection) |
List<String> |
getIgnoredSql()
Get a list with the SQL statements that was ignored in the last run.
|
private static final org.slf4j.Logger log
private final Configuration cfg
private final Dialect dialect
private final DbEngine dbEngine
private final SchemaGenerator.Mode mode
private final ProgressReporter progress
public SchemaGenerator(Configuration cfg, Dialect dialect, DbEngine dbEngine, SchemaGenerator.Mode mode, ProgressReporter progress)
cfg
- The current configurationdialect
- The dialect of the database we are connecting todbEngine
- The DbEngine for the database we are connecting tomode
- The installation modeprogress
- An optional progress reporterpublic void execute(Connection connection) throws SQLException
execute
in interface Work
SQLException