private DatabaseGenerator.Results generateSchema(List pcClasses,
String dbName, Boolean useUniqueTableNames,
Properties userPolicy)
throws IOException, DBException, ModelException {
MappingPolicy mappingPolicy = MappingPolicy.getMappingPolicy(dbName);
mappingPolicy.setUserPolicy(userPolicy);
if (useUniqueTableNames != null) {
// It was explicitly set.
mappingPolicy.setUniqueTableName(useUniqueTableNames.booleanValue());
}
return DatabaseGenerator.generate(
model, pcClasses, mappingPolicy,
infoHelper.getSchemaNameToGenerate(), CLASS_SUFFIX, true);