if (!schema.isEmpty()) {
throw Error.error(ErrorCode.X_2B000);
}
}
Iterator tableIterator =
schema.schemaObjectIterator(SchemaObject.TABLE);
while (tableIterator.hasNext()) {
Table table = ((Table) tableIterator.next());
database.getGranteeManager().removeDbObject(table.getName());
table.releaseTriggers();
database.persistentStoreCollection.releaseStore(table);
}
Iterator sequenceIterator =
schema.schemaObjectIterator(SchemaObject.SEQUENCE);
while (sequenceIterator.hasNext()) {
NumberSequence sequence =
((NumberSequence) sequenceIterator.next());
database.getGranteeManager().removeDbObject(sequence.getName());
}
schema.clearStructures();