public List < T > fetchList ( ) throws SQLException , InstantiationException , IllegalAccessException { ArrayList < T > result = new ArrayList < T > ( ) ; if ( primitive ) { while ( ! finished ) { result . add ( fetchSinglePrimitiveInternal ( ) ) ; next ( ) ; } } else { while ( ! finished ) { result . add ( fetchSingleInternal ( ) ) ; next ( ) ; } } return result ; }
Fetches the whole list of entities . It will not stop until entire result set will end .