/** * Enable or disable compression of blocks with Deflate algorithm * @param b */ public synchronized void setCompress(boolean b) { checkIfClosed(); if(DEBUG) System.out.println("Setting compression to: "+b); compress = b; }
/** * Get the underlying Transaction Manager */ public synchronized TransactionManager getTransactionManager() { checkIfClosed(); return recordFile.txnMgr; }
/** * 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(); }
/** * Commit (make persistent) all changes since beginning of transaction. */ public void commit() throws IOException { checkIfClosed(); pageMgr.commit(); }
/** * Commit (make persistent) all changes since beginning of transaction. */ public synchronized void commit() throws IOException { checkIfClosed(); pageMgr.commit(); }
/** * Commit (make persistent) all changes since beginning of transaction. */ public synchronized void commit() throws IOException { checkIfClosed(); pageMgr.commit(); }
/** * Rollback (cancel) all changes since beginning of transaction. */ public void rollback() throws IOException { checkIfClosed(); pageMgr.rollback(); }
/** * Rollback (cancel) all changes since beginning of transaction. */ public synchronized void rollback() throws IOException { checkIfClosed(); pageMgr.rollback(); }
/** * Rollback (cancel) all changes since beginning of transaction. */ public synchronized void rollback() throws IOException { checkIfClosed(); pageMgr.rollback(); }
/** * Returns the indicated root rowid. * * @see #getRootCount */ public synchronized long getRoot( int id ) throws IOException { checkIfClosed(); return pageMgr.getFileHeader().getRoot( id ); }
public synchronized void setRoot( int id, long rowid ) throws IOException { checkIfClosed(); _physPageman.getFileHeader().setRoot( id, rowid ); }
/** * Closes the record manager. * * @throws IOException when one of the underlying I/O operations fails. */ public void close() throws IOException { checkIfClosed(); pageMgr.close(); pageMgr = null; recordFile.close(); recordFile = null; }
/** * Sets the indicated root rowid. * * @see #getRootCount */ public synchronized void setRoot( int id, long rowid ) throws IOException { checkIfClosed(); pageMgr.getFileHeader().setRoot( id, rowid ); }
/** * Sets the indicated root rowid. * * @see #getRootCount */ public void setRoot( int id, long rowid ) throws IOException { checkIfClosed(); pageMgr.getFileHeader().setRoot( id, rowid ); }
public synchronized long getRoot( int id ) throws IOException { checkIfClosed(); return _physPageman.getFileHeader().getRoot( id ); }
/** * Sets the indicated root rowid. * * @see #getRootCount */ public synchronized void setRoot( int id, long rowid ) throws IOException { checkIfClosed(); pageMgr.getFileHeader().setRoot( id, rowid ); }
/** * Returns the indicated root rowid. * * @see #getRootCount */ public synchronized long getRoot( int id ) throws IOException { checkIfClosed(); return pageMgr.getFileHeader().getRoot( id ); }
public synchronized void rollback() throws IOException { checkIfClosed(); _physMgr.commit(); _logicMgr.commit(); _physPageman.rollback(); _physPagemanFree.rollback(); _logicPageman.rollback(); _logicPagemanFree.rollback(); }
public synchronized void commit() throws IOException { checkIfClosed(); /** flush free phys rows into pages*/ _physMgr.commit(); _logicMgr.commit(); /**commit pages */ _physPageman.commit(); _physPagemanFree.commit(); _logicPageman.commit(); _logicPagemanFree.commit(); }