public void deleteLob ( long locator ) throws PersistException { if ( locator == 0 ) { return ; } Transaction txn = mRepo . enterTransaction ( IsolationLevel . READ_COMMITTED ) ; try { StoredLob lob = mLobStorage . prepare ( ) ; lob . setLocator ( locator ) ; if ( lob . tryDelete ( ) ) { try { mLobBlockStorage . query ( "locator = ?" ) . with ( lob . getLocator ( ) ) . deleteAll ( ) ; } catch ( FetchException e ) { throw e . toPersistException ( ) ; } } txn . commit ( ) ; } finally { txn . exit ( ) ; } }
Deletes Lob data freeing up all space consumed by it .