public class WiserSchemaTool
extends org.apache.openjpa.jdbc.schema.SchemaTool
SchemaTool
, this class' methods keep consistent behavior when either _writer
is null or not._conf, _dict, _ds, _fullDB, _loc, _log, _scriptToExecute, _sqlTerminator, ACTION_ADD, ACTION_BUILD, ACTION_CREATEDB, ACTION_DELETE_TABLE_CONTENTS, ACTION_DROP, ACTION_DROP_SCHEMA, ACTION_DROPDB, ACTION_EXECUTE_SCRIPT, ACTION_EXPORT, ACTION_IMPORT, ACTION_REFLECT, ACTION_REFRESH, ACTION_RETAIN, ACTIONS
Constructor and Description |
---|
WiserSchemaTool(org.apache.openjpa.jdbc.conf.JDBCConfiguration conf) |
WiserSchemaTool(org.apache.openjpa.jdbc.conf.JDBCConfiguration conf,
String action) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildSchema(org.apache.openjpa.jdbc.schema.SchemaGroup db,
org.apache.openjpa.jdbc.schema.SchemaGroup repos,
boolean considerDatabaseState) |
add, add, addColumn, addForeignKey, addPrimaryKey, assertSchemaGroup, build, clear, createDB, createIndex, createIndex, createSequence, createTable, deleteTableContents, drop, drop, dropColumn, dropDB, dropForeignKey, dropIndex, dropPrimaryKey, dropSchema, dropSequence, dropTable, dropTables, executeScript, executeSQL, findForeignKey, findIndex, getAction, getDBSchemaGroup, getDBSchemaGroup, getDropSequences, getDropTables, getForeignKeys, getIgnoreErrors, getIndexes, getOpenJPATables, getPrimaryKeys, getRollbackBeforeDDL, getSchemaGroup, getSequences, getWriter, handleException, isDroppable, isDroppable, main, record, refresh, retain, retain, run, run, run, setDBSchemaGroup, setDropSequences, setDropTables, setForeignKeys, setIgnoreErrors, setIndexes, setOpenJPATables, setPrimaryKeys, setRollbackBeforeDDL, setSchemaGroup, setScriptToExecute, setSequences, setSQLTerminator, setWriter
public WiserSchemaTool(org.apache.openjpa.jdbc.conf.JDBCConfiguration conf)
public WiserSchemaTool(org.apache.openjpa.jdbc.conf.JDBCConfiguration conf, String action)
protected void buildSchema(org.apache.openjpa.jdbc.schema.SchemaGroup db, org.apache.openjpa.jdbc.schema.SchemaGroup repos, boolean considerDatabaseState) throws SQLException
buildSchema
in class org.apache.openjpa.jdbc.schema.SchemaTool
SQLException
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.