private static LogImpl getLogImpl(JDBCConfiguration conf) {
return (LogImpl)conf.getLog(JDBCConfiguration.LOG_SCHEMA);
}
private static void runSchemaTool(JDBCConfigurationImpl conf, String action) throws Exception {
SchemaTool st = new SchemaTool(conf, action);
st.setIgnoreErrors(true);
st.setOpenJPATables(true);
st.setIndexes(false);
st.setPrimaryKeys(false);
if (!SchemaTool.ACTION_DROPDB.equals(action)) {
st.setSchemaGroup(st.getDBSchemaGroup());
}
st.run();
}