01: package org.airtodo.gui.dialog_delete;
02:
03: import java.sql.SQLException;
04: import java.util.Set;
05:
06: import org.air.framework.gui.dialogs.grid.AbstractGridDialog;
07: import org.air.framework.gui.dialogs.input.AbstractDeleteDialog;
08: import org.air.framework.gui.dialogs.input.IDeleter;
09: import org.airtodo.db.DbUtils;
10:
11: public class CustomerDeleteDialog extends AbstractDeleteDialog {
12: public CustomerDeleteDialog(AbstractGridDialog owner) {
13: super (owner);
14: }
15:
16: private IDeleter deleter;
17:
18: public IDeleter getDeleter() {
19: if (deleter == null)
20: deleter = new IDeleter() {
21: public void updateGui(
22: AbstractGridDialog abstractAddDeleteOpenDialog) {
23: }
24:
25: public Set deleteData(Set set) throws SQLException {
26: return DbUtils.deleteCustomers(set);
27: }
28: };
29: return deleter;
30: }
31: }
|