/** * PUBLIC: * Empties the set of read-only classes. * It is illegal to call this method on nested UnitOfWork objects. A nested UnitOfWork * cannot have a subset of its parent's set of read-only classes. * Also removes classes which are read only because their descriptors are readonly */ public void removeAllReadOnlyClasses() throws ValidationException { if (this.isNestedUnitOfWork) { throw ValidationException.cannotRemoveFromReadOnlyClassesInNestedUnitOfWork(); } getReadOnlyClasses().clear(); }
/** * PUBLIC: * Empties the set of read-only classes. * It is illegal to call this method on nested UnitOfWork objects. A nested UnitOfWork * cannot have a subset of its parent's set of read-only classes. * Also removes classes which are read only because their descriptors are readonly */ @Override public void removeAllReadOnlyClasses() throws ValidationException { if (this.isNestedUnitOfWork) { throw ValidationException.cannotRemoveFromReadOnlyClassesInNestedUnitOfWork(); } getReadOnlyClasses().clear(); }
/** * PUBLIC: * Empties the set of read-only classes. * It is illegal to call this method on nested UnitOfWork objects. A nested UnitOfWork * cannot have a subset of its parent's set of read-only classes. * Also removes classes which are read only because their descriptors are readonly */ public void removeAllReadOnlyClasses() throws ValidationException { if (isNestedUnitOfWork()) { throw ValidationException.cannotRemoveFromReadOnlyClassesInNestedUnitOfWork(); } getReadOnlyClasses().clear(); }
/** * PUBLIC: * Removes a Class from the receiver's set of read-only classes. * It is illegal to try to send this method to a nested UnitOfWork. */ public void removeReadOnlyClass(Class theClass) throws ValidationException { if (!canChangeReadOnlySet()) { throw ValidationException.cannotModifyReadOnlyClassesSetAfterUsingUnitOfWork(); } if (this.isNestedUnitOfWork) { throw ValidationException.cannotRemoveFromReadOnlyClassesInNestedUnitOfWork(); } getReadOnlyClasses().remove(theClass); }
/** * PUBLIC: * Removes a Class from the receiver's set of read-only classes. * It is illegal to try to send this method to a nested UnitOfWork. */ @Override public void removeReadOnlyClass(Class theClass) throws ValidationException { if (!canChangeReadOnlySet()) { throw ValidationException.cannotModifyReadOnlyClassesSetAfterUsingUnitOfWork(); } if (this.isNestedUnitOfWork) { throw ValidationException.cannotRemoveFromReadOnlyClassesInNestedUnitOfWork(); } getReadOnlyClasses().remove(theClass); }
/** * PUBLIC: * Removes a Class from the receiver's set of read-only classes. * It is illegal to try to send this method to a nested UnitOfWork. */ public void removeReadOnlyClass(Class theClass) throws ValidationException { if (!canChangeReadOnlySet()) { throw ValidationException.cannotModifyReadOnlyClassesSetAfterUsingUnitOfWork(); } if (isNestedUnitOfWork()) { throw ValidationException.cannotRemoveFromReadOnlyClassesInNestedUnitOfWork(); } getReadOnlyClasses().remove(theClass); }