@Override
	public void setReadOnly(boolean readOnly) throws RemoteException {
		if (this.readOnly != readOnly) {
			tx.commit();
			this.readOnly = readOnly;
			try {
				tx = VanillaDb.txMgr().newTransaction(isolationLevel, readOnly);
			} catch (Exception e) {
				throw new RemoteException("error creating transaction ", e);
			}
		}
	}
@ Override public void setReadOnly ( boolean readOnly ) throws RemoteException { if ( this . readOnly != readOnly ) { tx . commit ( ) ; this . readOnly = readOnly ; try { tx = VanillaDb . txMgr ( ) . newTransaction ( isolationLevel , readOnly ) ; } catch ( Exception e ) { throw new RemoteException ( "error creating transaction " , e ) ; } } }
Sets this connection's auto-commit mode to the given state. The default
setting of auto-commit mode is true. This method may commit current
transaction and start a new transaction.