/** * Returns the number of slots available for "root" rowids. These slots * can be used to store special rowids, like rowids that point to * other rowids. Root rowids are useful for bootstrapping access to * a set of data. */ public synchronized int getRootCount() { checkIfClosed(); return recMgr.getRootCount(); }
/** * Returns the indicated root rowid. * * @see #getRootCount */ public synchronized long getRoot( int id ) throws IOException { checkIfClosed(); return recMgr.getRoot( id ); }
/** * Returns the number of slots available for "root" rowids. These slots * can be used to store special rowids, like rowids that point to * other rowids. Root rowids are useful for bootstrapping access to * a set of data. */ public synchronized int getRootCount() { checkIfClosed(); return recordManager.getRootCount(); }
/** * Sets the indicated root rowid. * * @see #getRootCount */ public synchronized void setRoot( int id, long rowid ) throws IOException { checkIfClosed(); recordManager.setRoot( id, rowid ); }
/** * Set the record id of a named object. */ public synchronized void setNamedObject( String name, long recid ) throws IOException { checkIfClosed(); recMgr.setNamedObject( name, recid ); }
/** * Returns the indicated root rowid. * * @see #getRootCount */ public synchronized long getRoot( int id ) throws IOException { checkIfClosed(); return recordManager.getRoot( id ); }
/** * Obtain the record id of a named object. Returns 0 if named object * doesn't exist. */ public synchronized long getNamedObject( String name ) throws IOException { checkIfClosed(); return recordManager.getNamedObject( name ); }
/** * Set the record id of a named object. */ public synchronized void setNamedObject( String name, long recid ) throws IOException { checkIfClosed(); recordManager.setNamedObject( name, recid ); }
/** * Sets the indicated root rowid. * * @see #getRootCount */ public synchronized void setRoot( int id, long rowid ) throws IOException { checkIfClosed(); recordManager.setRoot( id, rowid ); }
/** * Set the record id of a named object. */ public synchronized void setNamedObject( String name, long recid ) throws IOException { checkIfClosed(); recordManager.setNamedObject( name, recid ); }
/** * Returns the indicated root rowid. * * @see #getRootCount */ public synchronized long getRoot( int id ) throws IOException { checkIfClosed(); return recordManager.getRoot( id ); }
/** * Obtain the record id of a named object. Returns 0 if named object * doesn't exist. */ public synchronized long getNamedObject( String name ) throws IOException { checkIfClosed(); return recordManager.getNamedObject( name ); }
/** * Obtain the record id of a named object. Returns 0 if named object * doesn't exist. */ public synchronized long getNamedObject( String name ) throws IOException { checkIfClosed(); return recMgr.getNamedObject( name ); }
/** * Rollback (cancel) all changes since beginning of transaction. */ public synchronized void rollback() throws IOException { checkIfClosed(); recordManager.rollback(); // discard all cache entries since we don't know which entries // where part of the transaction cache.removeAll(); }
/** * Commit (make persistent) all changes since beginning of transaction. */ public synchronized void commit() throws IOException { checkIfClosed(); updateCacheEntries(); recordManager.commit(); }
/** * Commit (make persistent) all changes since beginning of transaction. */ public synchronized void commit() throws IOException { checkIfClosed(); updateCacheEntries(); recordManager.commit(); }
/** * Deletes a record. * * @param recid the rowid for the record that should be deleted. * @throws IOException when one of the underlying I/O operations fails. */ public synchronized void delete( long recid ) throws IOException { checkIfClosed(); recMgr.delete( recid ); cache.remove( recid ); }
/** * Rollback (cancel) all changes since beginning of transaction. */ public synchronized void rollback() throws IOException { checkIfClosed(); recordManager.rollback(); // discard all cache entries since we don't know which entries // where part of the transaction cache.removeAll(); }
/** * Rollback (cancel) all changes since beginning of transaction. */ public synchronized void rollback() throws IOException { checkIfClosed(); recMgr.rollback(); // discard all cache entries since we don't know which entries // where part of the transaction cache.removeAll(); }
/** * Commit (make persistent) all changes since beginning of transaction. */ public synchronized void commit() throws IOException { checkIfClosed(); updateCacheEntries(); recMgr.commit(); }