/** * 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 void delete( long recid ) throws IOException { LockElement element; checkIfClosed(); if ( recid <= 0 ) { throw new IllegalArgumentException( I18n.err( I18n.ERR_536, recid ) ); } LOG.debug( "BaseRecordManager.delete() recid {}", recid ); element = beginIO( recid, IOType.WRITE_IO ); try { Location logRowId = new Location( recid ); Location physRowId = logMgr.fetch( logRowId ); physMgr.delete( physRowId ); logMgr.delete( logRowId ); } finally { this.endIO( recid, element, IOType.WRITE_IO ); } }
endIO( recid, element, IOType.READ_IO );
endIO( recid, element, IOType.WRITE_IO );