b0c56015880c82173f03ea07eeded5cfbf9261d9.svn-base 741 B

123456789101112131415161718192021222324252627
  1. package com.toolkit.databak;
  2. import java.util.ArrayList;
  3. import com.persistence.DBdll.SysOperator;
  4. import com.sysmodel.datamodel.xmlmodel.impl.SysModelImpl;
  5. public class GetDeleteTableDll{
  6. /**
  7. * @param args
  8. */
  9. @SuppressWarnings("unused")
  10. public static void main(String[] args) {
  11. String path = System.getProperty("user.dir").replace("\\", "/") + "/WebContent/WEB-INF/";
  12. SysModelImpl sysmodel = SysModelImpl.getInstance(path + "DataModel.xml");
  13. SysOperator SysOperator = new SysOperator();
  14. ArrayList<String> tables = SysOperator.getTableNames(1);
  15. System.out.println("--delete table -----------------");
  16. for (int i = 0; i < tables.size(); i++) {
  17. System.out.println("delete from " + tables.get(i) + ";");
  18. }
  19. }
  20. }