Refactor internals DefaultRelationalQueryEngine.findListMapper()

- Remove findListMapper() method
- Introduce RowReader interface
- Combine findList internals for both SqlRow and RowMapper use
This commit is contained in:
rbygrave
2021-06-09 14:58:08 +12:00
parent 4613f63c66
commit 3add4472ef
6 changed files with 76 additions and 107 deletions
@@ -2,7 +2,6 @@ package org.tests.query.sqlquery;
import io.ebean.BaseTestCase;
import io.ebean.DB;
import io.ebean.Ebean;
import io.ebean.RowMapper;
import io.ebean.SqlQuery;
import io.ebean.SqlRow;
@@ -361,7 +360,7 @@ public class SqlQueryTests extends BaseTestCase {
ResetBasicData.reset();
int expectedRows = Ebean.find(Order.class).findCount();
int expectedRows = DB.find(Order.class).findCount();
final AtomicInteger count = new AtomicInteger();