112113114115116117118
@Override protected void checkActive() { checkNotClosed() ; if ( sConn.haveUsedInTransaction() && ! isInTransaction() ) throw new JenaTransactionException("Not in a transaction ("+getLocation()+")") ; }
120121122123124125126
@Override protected void checkNotActive() { checkNotClosed() ; if ( sConn.haveUsedInTransaction() && isInTransaction() ) throw new JenaTransactionException("Currently in a transaction ("+getLocation()+")") ; }
126127128129130131132
} protected void checkNotClosed() { if ( isClosed ) throw new JenaTransactionException("Already closed") ; }
61626364656667
} @Override protected void checkActive() { if ( !isInTransaction() ) throw new JenaTransactionException("Not in a transaction") ; }
67686970717273
} @Override protected void checkNotActive() { if ( isInTransaction() ) throw new JenaTransactionException("Currently in a transaction") ; }
99100101102103104105106107
@Override protected void _abort() { if ( isTransactionType(ReadWrite.WRITE) && ! abortImplemented() ) { // Still clean up. _end() ; // This clears the transaction type. throw new JenaTransactionException("Can't abort a write lock-transaction") ; } _end() ; }
60616263646566
66676869707172
979899100101102103104105
protected void _abort() { // OK for read, not for write. if ( readWrite.get() == ReadWrite.WRITE ) { // Still clean up. _end() ; throw new JenaTransactionException("Can't abort a write lock-transaction") ; } _end() ; }