88cfe4b3abe611ea27c9b8a3da87baa4f6f0027c.svn-base 732 B

123456789101112131415161718192021222324
  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 GetDropTableDll{
  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("--drop table -----------------");
  16. for (int i = 0; i < tables.size(); i++) {
  17. System.out.println("drop table " + tables.get(i) + ";");
  18. }
  19. }
  20. }