/** * Get the underlying Transaction Manager */ public synchronized TransactionManager getTransactionManager() throws IOException { checkIfClosed(); return recordFile.getTxnMgr(); }
/** * Get the underlying Transaction Manager */ public TransactionManager getTransactionManager() throws IOException { checkIfClosed(); return recordFile.getTxnMgr(); }
/** * Force closing the file and underlying transaction manager. * Used for testing purposed only. */ void forceClose() throws IOException { if ( !transactionsDisabled ) { getTxnMgr().forceClose(); } file.close(); }
/** * Force closing the file and underlying transaction manager. * Used for testing purposed only. */ void forceClose() throws IOException { if ( ! transactionsDisabled ) { getTxnMgr().forceClose(); } file.close(); }
/** * Rollback the current transaction by discarding all dirty buffers */ void rollback() throws IOException { // debugging... if ( !inUse.isEmpty() ) { showList( inUse.values().iterator() ); throw new Error( I18n.err( I18n.ERR_557, inUse.size() ) ); } // System.out.println("rollback..."); dirty.clear(); if ( !transactionsDisabled ) { getTxnMgr().synchronizeLogFromDisk(); } if ( !inTxn.isEmpty() ) { showList( inTxn.values().iterator() ); throw new Error( I18n.err( I18n.ERR_558, inTxn.size() ) ); } }
/** * Rollback the current transaction by discarding all dirty buffers */ void rollback() throws IOException { // debugging... if ( ! inUse.isEmpty() ) { showList( inUse.values().iterator() ); throw new Error( I18n.err( I18n.ERR_557, inUse.size() ) ); } // System.out.println("rollback..."); dirty.clear(); if ( ! transactionsDisabled ) { getTxnMgr().synchronizeLogFromDisk(); } if ( ! inTxn.isEmpty() ) { showList( inTxn.values().iterator() ); throw new Error( I18n.err( I18n.ERR_558, inTxn.size() ) ); } }