public static < T extends Model > List < T > processAndCloseCursor ( Class < T > cls , Cursor cursor ) { List < T > entities = processCursor ( cls , cursor ) ; cursor . close ( ) ; return entities ; }
Iterate over a cursor and load entities . Closes the cursor when finished .