package ch.asynk; import java.util.List; public abstract class AbstractDAOOperations> extends AbstractDAO { public int insert(final TObject obj) { return execInt(true, new CallBack() { public Integer call(TMapper m) { return m.insert(obj); } }); } public int update(final TObject obj) { return execInt(true, new CallBack() { public Integer call(TMapper m) { return m.update(obj); } }); } public int delete(final TObject obj) { return execInt(true, new CallBack() { public Integer call(TMapper m) { return m.delete(obj); } }); } public int count() { return execInt(false, new CallBack() { public Integer call(TMapper m) { return m.count(); } }); } public List select() { return execObjects(false, new CallBack, TMapper>() { public List call(TMapper m) { return m.select(); } }); } public TObject selectOne(final TIdentity id) { return execObject(false, new CallBack() { public TObject call(TMapper m) { return m.selectOne(id); } }); } }