synchronized void saveAll ( ) { Iterator it = new BaseHashIterator ( ) ; int savecount = 0 ; for ( ; it . hasNext ( ) ; ) { CachedObject r = ( CachedObject ) it . next ( ) ; if ( r . hasChanged ( ) ) { rowTable [ savecount ++ ] = r ; } } saveRows ( savecount ) ; Error . printSystemOut ( saveAllTimer . elapsedTimeToMessage ( "Cache.saveRow() total row save time" ) ) ; Error . printSystemOut ( "Cache.saveRow() total row save count = " + saveRowCount ) ; Error . printSystemOut ( makeRowTimer . elapsedTimeToMessage ( "Cache.makeRow() total row load time" ) ) ; Error . printSystemOut ( "Cache.makeRow() total row load count = " + makeRowCount ) ; Error . printSystemOut ( sortTimer . elapsedTimeToMessage ( "Cache.sort() total time" ) ) ; }
Writes out all modified cached Rows .