/** * Drop the table constraints from the database. */ public void dropConstraints(org.eclipse.persistence.sessions.DatabaseSession session, SchemaManager schemaManager) { for (Enumeration enumtr = getTableDefinitions().elements(); enumtr.hasMoreElements();) { schemaManager.buildFieldTypes((TableDefinition)enumtr.nextElement()); } for (Enumeration enumtr = getTableDefinitions().elements(); enumtr.hasMoreElements();) { try { schemaManager.dropConstraints((TableDefinition)enumtr.nextElement()); } catch (org.eclipse.persistence.exceptions.DatabaseException dbE) { //ignore } } }
/** * Drop the table constraints from the database. */ public void dropConstraints(DatabaseSession session, SchemaManager schemaManager, boolean build) { buildConstraints(schemaManager, build); for (TableDefinition table : getTableDefinitions()) { try { schemaManager.dropConstraints(table); } catch (DatabaseException exception) { //ignore } } }
/** * Drop the table constraints from the database. */ public void dropConstraints(DatabaseSession session, SchemaManager schemaManager, boolean build) { buildConstraints(schemaManager, build); for (TableDefinition table : getTableDefinitions()) { try { schemaManager.dropConstraints(table); } catch (DatabaseException exception) { //ignore } } }
/** * Drop the tables from the database. */ public void dropTables(org.eclipse.persistence.sessions.DatabaseSession session, SchemaManager schemaManager) { for (Enumeration enumtr = getTableDefinitions().elements(); enumtr.hasMoreElements();) { schemaManager.buildFieldTypes((TableDefinition)enumtr.nextElement()); } for (Enumeration enumtr = getTableDefinitions().elements(); enumtr.hasMoreElements();) { try { schemaManager.dropConstraints((TableDefinition)enumtr.nextElement()); } catch (org.eclipse.persistence.exceptions.DatabaseException dbE) { //ignore } } String sequenceTableName = getSequenceTableName(session); for (Enumeration enumtr = getTableDefinitions().elements(); enumtr.hasMoreElements();) { // Must not create sequence table as done in createSequences. TableDefinition table = (TableDefinition)enumtr.nextElement(); if (!table.getName().equals(sequenceTableName)) { try { schemaManager.dropObject(table); } catch (DatabaseException ex) { if (!shouldIgnoreDatabaseException()) { throw ex; } } } } }
for (Enumeration enumtr = getTableDefinitions().elements(); enumtr.hasMoreElements();) { try { schemaManager.dropConstraints((TableDefinition)enumtr.nextElement()); } catch (org.eclipse.persistence.exceptions.DatabaseException dbE) {