Make your own free website on Tripod.com

API cont... StoreAll()

For storing multiple entities the GenericDelegator class has a method called storeAll() which takes many GenericValue instances and stores them in the same transaction.

List toBeStored = new LinkedList();

toBeStored.add(delegator.makeValue("ContactMech", ...
toBeStored.add(delegator.makeValue("PartyContactMech", ....
delegator.storeAll(toBeStored);