package loesninger; import java.util.*; import Dataforbindelse; import Kunde; public class Dataforbindelseslogger extends Dataforbindelse { private Dataforbindelse df; public Dataforbindelseslogger(Dataforbindelse forb) { df = forb; } public void sletAlleData() throws Exception { System.out.println("DBLOG: sletAlleData()"); df.sletAlleData(); } public void indsæt(Kunde k) throws Exception { System.out.println("DBLOG: indsæt("+k+")"); df.indsæt(k); } public List hentAlle() throws Exception { List alle = df.hentAlle(); System.out.println("DBLOG: hentAlle() returnerer "+alle); return alle; } }