[OFBiz] Users - Re: Techniques for moving large tables help

David Riggle driggle at hlmksw.com
Thu Oct 13 13:40:01 EDT 2005


I did try a getting a EntityListIterator by using the 
delegator.findListIteratorByCondition() method, but I would get the same 
problem, the computer runs out of memory. Here is a small code snippet:

        List inventoryOrder = new LinkedList();
        Collection inventoryCollection = new LinkedList();
        inventoryCollection.add("item");
        inventoryCollection.add("class");
        inventoryCollection.add("descrip");
        inventoryCollection.add("cost");
        inventoryCollection.add("onhand");
        inventoryCollection.add("onorder");
        inventoryCollection.add("unitms");
        inventoryCollection.add("seq");
        inventoryCollection.add("supplier");
        inventoryCollection.add("vpartno");
        inventoryCollection.add("taxcode");
        inventoryCollection.add("stkcode");
        inventoryOrder.add("item");
        EntityListIterator sourceListIterator = 
delegator.findListIteratorByCondition("arinvt01", /*condition*/ null,
                                               inventoryCollection,
                                               inventoryOrder);


Thanks,

- David Riggle


More information about the Users mailing list