public void store() throws PersistenceException { java.util.Iterator<PersistentDebitTransferTransaction> entries = (this.list == null ? new java.util.Vector<PersistentDebitTransferTransaction>().iterator() : this.list.iterator(this)); while (entries.hasNext()) { PersistentDebitTransferTransaction current = entries.next(); current.store(); long entryId = ConnectionHandler.getTheConnectionHandler() .theDebitTransferSuccessfulFacade .successfulsAdd(owner.getId(), current); ((PersistentListEntryProxi) current).setListEntryId(entryId); } }
public void add(PersistentDebitTransferTransaction entry) throws PersistenceException { if (entry != null) { DebitTransferTransactionList list = this.getList(); long entryId = 0; if (!this.owner.isDelayed$Persistence()) { entry.store(); entryId = ConnectionHandler.getTheConnectionHandler() .theDebitTransferSuccessfulFacade .successfulsAdd(owner.getId(), entry); } list.add( (PersistentDebitTransferTransaction) PersistentProxi.createListEntryProxi(entry.getId(), entry.getClassId(), entryId)); } }