public boolean cancelAll() { // this method does not lock, since we want to allow a different // thread to be able to cancel on a locked-up persistence manager assertOpen(); try { // if we're flushing, have to set rollback only -- do this before we // attempt to cancel, because otherwise the cancel might case the // transaction to complete before we have a chance to set the // rollback only flag if ((_flags & FLAG_STORE_FLUSHING) != 0) setRollbackOnlyInternal(new UserException()); return _store.cancelAll(); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new StoreException(re); } }
public boolean cancelAll() { // this method does not lock, since we want to allow a different // thread to be able to cancel on a locked-up persistence manager assertOpen(); try { // if we're flushing, have to set rollback only -- do this before we // attempt to cancel, because otherwise the cancel might case the // transaction to complete before we have a chance to set the // rollback only flag if ((_flags & FLAG_STORE_FLUSHING) != 0) setRollbackOnlyInternal(new UserException()); return _store.cancelAll(); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new StoreException(re); } }
public boolean cancelAll() { // this method does not lock, since we want to allow a different // thread to be able to cancel on a locked-up persistence manager assertOpen(); try { // if we're flushing, have to set rollback only -- do this before we // attempt to cancel, because otherwise the cancel might case the // transaction to complete before we have a chance to set the // rollback only flag if ((_flags & FLAG_STORE_FLUSHING) != 0) setRollbackOnlyInternal(new UserException()); return _store.cancelAll(); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new StoreException(re); } }
public boolean cancelAll() { // this method does not lock, since we want to allow a different // thread to be able to cancel on a locked-up persistence manager assertOpen(); try { // if we're flushing, have to set rollback only -- do this before we // attempt to cancel, because otherwise the cancel might case the // transaction to complete before we have a chance to set the // rollback only flag if ((_flags & FLAG_STORE_FLUSHING) != 0) setRollbackOnlyInternal(new UserException()); return _store.cancelAll(); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new StoreException(re); } }
public boolean cancelAll() { // this method does not lock, since we want to allow a different // thread to be able to cancel on a locked-up persistence manager assertOpen(); try { // if we're flushing, have to set rollback only -- do this before we // attempt to cancel, because otherwise the cancel might case the // transaction to complete before we have a chance to set the // rollback only flag if ((_flags & FLAG_STORE_FLUSHING) != 0) setRollbackOnlyInternal(new UserException()); return _store.cancelAll(); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new StoreException(re); } }