4142434445464748495051
@Override public void enterCriticalSection(boolean readLockRequested) { if ( state != TxNONE ) throw new TDBTransactionException("Illegal state: "+state) ; if ( readLockRequested ) { state = TxREAD ; dsg.begin(ReadWrite.READ) ;
6061626364656667686970
@Override public void leaveCriticalSection() { switch (state) { case TxNONE : throw new TDBTransactionException("Illegal state: "+state) ; case TxREAD : dsg.close() ; break ; case TxWRITE : dsg.commit() ; break ; } state = TxNONE ; }