01: package invoice;
02:
03: import java.io.IOException;
04:
05: /**
06: * @author S.Chassande-Barrioz
07: */
08: public class Remover {
09:
10: public static void main(String[] args) {
11: InvoiceAppsHelper a = null;
12: try {
13: a = new InvoiceAppsHelper(args[0]);
14: } catch (IOException e) {
15: e.printStackTrace();
16: System.exit(-1);
17: }
18: System.out.println("Removing the invoice...");
19: a.removeInvoices();
20:
21: System.out.println("Removing the products...");
22: a.removeProducts();
23:
24: System.out.println("Removing the addresses...");
25: a.removeAddresses();
26:
27: System.out.println("Data base:");
28: System.out.println("==========");
29: a.printAll();
30: }
31: }
|