throw new MojoExecutionException(message, th);
}
}
DbImportParameters toParameters() {
DbImportParameters parameters = new DbImportParameters();
parameters.setAdapter(adapter);
parameters.setCatalog(catalog);
parameters.setDefaultPackage(defaultPackage);
parameters.setDriver(driver);
parameters.setImportProcedures(importProcedures);
parameters.setDataMapFile(map);
parameters.setMeaningfulPkTables(getMeaningfulPkTables());
parameters.setNamingStrategy(namingStrategy);
parameters.setOverwrite(overwrite);
parameters.setPassword(password);
parameters.setProcedurePattern(procedurePattern);
parameters.setSchema(getSchema());
parameters.setTablePattern(tablePattern);
parameters.setUrl(url);
parameters.setUsername(username);
parameters.setIncludeTables(includeTables);
parameters.setExcludeTables(excludeTables);
parameters.setUsePrimitives(usePrimitives);
return parameters;
}