This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
SchemaGeneratorFactory sgf = SchemaGeneratorFactory.getDefault();
sgf.updateSchema(model.getSchemaModel(), model.getSchemaDesignPattern());
} catch (Exception ex) {
throw new IllegalArgumentException("Exception during flush: ",ex); //NOI18N
throw new IllegalStateException("Exception during flush: ",ex); //NOI18N
} finally {
model.getPropertyChangeListener().clearEvents();
}
return transaction != null;
/**
* Ends the transaction and commits changes to the document.
* The operation may throw {@link IllegalStateException} if it is not possible to
* flush changes, because e.g. file is read-only, deleted or the document is changed
* in an incompatible way during the transaction.
*
* @throws IllegalStateException when the backing file/document is read-only or the document
* changed in a way that prevent application of changes.
*/
@Override
public synchronized void endTransaction() {
public synchronized void endTransaction() throws IllegalStateException {
endTransaction(false);