private TResult handleCursor ( Cursor cursor , UserQuery query ) { TResult result = convertCursor ( cursor ) ; result . setQuery ( query ) ; if ( table != null ) { result . setTable ( table ) ; } return result ; }
Convert the cursor to the result type cursor