/** * Drop the tables from the database. */ public void dropTables(DatabaseSession session, SchemaManager schemaManager) { dropTables(session, schemaManager, true); }
/** * Drop the tables from the database. */ public void dropTables(DatabaseSession session, SchemaManager schemaManager) { dropTables(session, schemaManager, true); }
/** * Drop the tables from the database. */ public void dropTables(DatabaseSession session) { //CR2612669 dropTables(session, new SchemaManager(session)); }
/** * Drop the tables from the database. */ public void dropTables(org.eclipse.persistence.sessions.DatabaseSession session) { //CR2612669 dropTables(session, new SchemaManager(session)); }
/** * Drop the tables from the database. */ public void dropTables(DatabaseSession session) { //CR2612669 dropTables(session, new SchemaManager(session)); }
protected void replaceTablesAndConstraints(SchemaManager schemaManager, DatabaseSession session, boolean createSequenceTables, boolean createSequences) { buildConstraints(schemaManager, true); boolean ignore = shouldIgnoreDatabaseException(); setIgnoreDatabaseException(true); try { dropTables(session, schemaManager, false); } finally { setIgnoreDatabaseException(ignore); } createTables(session, schemaManager, false, false, createSequenceTables, createSequences); }
protected void replaceTablesAndConstraints(SchemaManager schemaManager, DatabaseSession session, boolean createSequenceTables, boolean createSequences) { buildConstraints(schemaManager, true); boolean ignore = shouldIgnoreDatabaseException(); setIgnoreDatabaseException(true); try { dropTables(session, schemaManager, false); } finally { setIgnoreDatabaseException(ignore); } createTables(session, schemaManager, false, false, createSequenceTables, createSequences); }
/** * Create the default table schema for the project this session associated with. */ public void dropDefaultTables() { // Drop each table w/o throwing exception and/or exit if some don't exist. boolean shouldLogExceptionStackTrace = getSession().getSessionLog().shouldLogExceptionStackTrace(); getSession().getSessionLog().setShouldLogExceptionStackTrace(false); try { // Drop the tables. TableCreator tableCreator = getDefaultTableCreator(true); tableCreator.dropTables(this.session, this); // Drop the sequences. dropSequences(); // Drop all the database schemas now if set to do so. This must be // called after all the constraints, tables etc. are dropped. dropDatabaseSchemas(); } catch (DatabaseException ex) { // Ignore error } finally { getSession().getSessionLog().setShouldLogExceptionStackTrace(shouldLogExceptionStackTrace); } // Reset database change events to new tables. if (this.session.getDatabaseEventListener() != null) { this.session.getDatabaseEventListener().remove(this.session); this.session.getDatabaseEventListener().register(this.session); } }
/** * Create the default table schema for the project this session associated with. */ public void dropDefaultTables() { // Drop each table w/o throwing exception and/or exit if some don't exist. boolean shouldLogExceptionStackTrace = getSession().getSessionLog().shouldLogExceptionStackTrace(); getSession().getSessionLog().setShouldLogExceptionStackTrace(false); try { // Drop the tables. TableCreator tableCreator = getDefaultTableCreator(true); tableCreator.dropTables(this.session, this); // Drop the sequences. dropSequences(); // Drop all the database schemas now if set to do so. This must be // called after all the constraints, tables etc. are dropped. dropDatabaseSchemas(); } catch (DatabaseException ex) { // Ignore error } finally { getSession().getSessionLog().setShouldLogExceptionStackTrace(shouldLogExceptionStackTrace); } // Reset database change events to new tables. if (this.session.getDatabaseEventListener() != null) { this.session.getDatabaseEventListener().remove(this.session); this.session.getDatabaseEventListener().register(this.session); } }