/** * The returned List will contain objects of the default type or objects that inherit from the * default. * * @throws TorqueException Any exceptions caught during processing will be rethrown wrapped into a * TorqueException. */ public static List<TDomain> populateObjects(List<Record> records) throws TorqueException { List<TDomain> results = new ArrayList<TDomain>(records.size()); // populate the object(s) for (int i = 0; i < records.size(); i++) { Record row = records.get(i); results.add(TDomainPeer.row2Object(row, 1, TDomainPeer.getOMClass())); } return results; }