org.notima.generic.adempiere.AdempiereDunningRun Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adempiereAdapter Show documentation
Show all versions of adempiereAdapter Show documentation
Adapter that connects directly to ADempiere database.
The newest version!
package org.notima.generic.adempiere;
import java.sql.Connection;
import java.util.ArrayList;
import org.notima.generic.businessobjects.DunningRun;
public class AdempiereDunningRun {
public static DunningRun load(int dunningRunId, Connection conn) throws Exception {
DunningRun dun = new DunningRun();
ArrayList tempEntries = AdempiereDunningEntry.loadAllForDunningRun(dunningRunId, conn);
for(AdempiereDunningEntry entry : tempEntries){
dun.addDunningEntry(AdempiereDunningEntry.convert(entry, conn));
}
return dun;
}
public AdempiereDunningRun(){};
}