Skip to content

Commit

Permalink
0000747: DbImport should have an empty constructor to make dependency…
Browse files Browse the repository at this point in the history
… injection easier.
  • Loading branch information
abrougher committed Aug 1, 2012
1 parent 999019e commit b631b6e
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -67,6 +67,9 @@ public enum Format { SQL, CSV, XML, SYM_XML };

private IDatabasePlatform platform;

public DbImport() {
}

public DbImport(IDatabasePlatform platform) {
this.platform = platform;
}
Expand Down Expand Up @@ -285,4 +288,7 @@ public boolean isFailOnError() {
return failOnError;
}

public void setDataSource(DataSource dataSource) {
platform = JdbcDatabasePlatformFactory.createNewPlatformInstance(dataSource, null, true);
}
}

0 comments on commit b631b6e

Please sign in to comment.