Hi everybody,

I want to implement a method which stores not only one object but a collection of objects.
I tried this one:
public void storeAll(Collection valueObjects) {

        if (valueObjects != null) {
                broker.beginTransaction();
                for (Iterator i = valueObjects.iterator(); i.hasNext();)
                        Object valueObject = i.next();
                        broker.store(valueObject, ObjectModification.INSERT);
                }
                broker.commitTransaction();
}
...but it doesn't work, not one object is stored into the database.

Anybody got an idea?

Regards,

Abid

--

Abid Hussain
Mail: [EMAIL PROTECTED]
Web: http://www.abid76.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to