123456789101112131415161718192021222324252627 |
- package com.toolkit.databak;
- import java.util.ArrayList;
- import com.persistence.DBdll.SysOperator;
- import com.sysmodel.datamodel.xmlmodel.impl.SysModelImpl;
- public class GetDeleteTableDll{
- /**
- * @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("--delete table -----------------");
- for (int i = 0; i < tables.size(); i++) {
- System.out.println("delete from " + tables.get(i) + ";");
- }
- }
- }
|