123456789101112131415161718192021222324 |
- package com.toolkit.databak;
- import java.util.ArrayList;
- import com.persistence.DBdll.SysOperator;
- import com.sysmodel.datamodel.xmlmodel.impl.SysModelImpl;
- public class GetDropTableDll{
- /**
- * @param args
- */
- @SuppressWarnings("unused")
- public static void main(String[] args) {
- String path = System.getProperty("user.dir").replace("\\", "/") + "/WebContent/WEB-INF/";
- SysModelImpl sysmodel = SysModelImpl.getInstance(path + "DataModel.xml");
- SysOperator SysOperator = new SysOperator();
- ArrayList<String> tables = SysOperator.getTableNames(1);
- System.out.println("--drop table -----------------");
- for (int i = 0; i < tables.size(); i++) {
- System.out.println("drop table " + tables.get(i) + ";");
- }
- }
- }
|