public List < ORecordOperation > getRecordEntriesByClass ( final String iClassName ) { final List < ORecordOperation > result = new ArrayList < ORecordOperation > ( ) ; if ( iClassName == null || iClassName . length ( ) == 0 ) // RETURN ALL THE RECORDS for ( ORecordOperation entry : recordEntries . values ( ) ) { result . add ( entry ) ; } else // FILTER RECORDS BY CLASSNAME for ( ORecordOperation entry : recordEntries . values ( ) ) { if ( entry . getRecord ( ) != null && entry . getRecord ( ) instanceof ODocument && iClassName . equals ( ( ( ODocument ) entry . getRecord ( ) ) . getClassName ( ) ) ) result . add ( entry ) ; } return result ; }
Called by class iterator .