I'm using JackCess library (http://sourceforge.net/p/jackcess/) to iterate over rows of a Access database under Java. The rows are many and the performance is not that great, currently I iterate over all rows of the table with this code:
private static Table VatUnitsTable;
private void fun()
{
for (Map<String, Object> EXVAtRow : VatUnitsTable)
{
VatUnit vatU = new VatUnit((String)EXVAtRow.get("UUID"));
vatU.setExtID((Integer) EXVAtRow.get("ID"));
//bla bla working with vatU object
}
}
I wonder what method is called when iterating with for(.. : ..) and if it is possible to get an arrayList of all rows in one call without iterating over each row and calling an SQL method.
Thank you