protected synchronized void saveRows ( CachedObject [ ] rows , int offset , int count ) { if ( count == 0 ) { return ; } for ( int i = offset ; i < offset + count ; i ++ ) { CachedObject r = rows [ i ] ; uncommittedCache . put ( r . getPos ( ) , r ) ; rows [ i ] = null ; } }
This is called internally when old rows need to be removed from the cache . Text table rows that have not been saved are those that have not been committed yet . So we don t save them but add them to the uncommitted cache until such time that they are committed or rolled back - fredt