public < T > List < T > getList ( String query , Class < T > entityClass , Object ... params ) throws SQLException , NoSuchFieldException , InstantiationException , IllegalAccessException { Cursor < T > cursor = getCursor ( query , entityClass , params ) ; return cursor . fetchList ( ) ; }
Executes SQL query which returns list of entities .