|
|
@ -3,40 +3,16 @@ package xyz.wbsite.dbtool.javafx.manger;
|
|
|
|
import org.springframework.boot.system.ApplicationHome;
|
|
|
|
import org.springframework.boot.system.ApplicationHome;
|
|
|
|
import xyz.wbsite.dbtool.javafx.enums.DataBase;
|
|
|
|
import xyz.wbsite.dbtool.javafx.enums.DataBase;
|
|
|
|
import xyz.wbsite.dbtool.javafx.enums.FieldType;
|
|
|
|
import xyz.wbsite.dbtool.javafx.enums.FieldType;
|
|
|
|
import xyz.wbsite.dbtool.javafx.manger.callable.AndroidCallable;
|
|
|
|
import xyz.wbsite.dbtool.javafx.manger.callable.*;
|
|
|
|
import xyz.wbsite.dbtool.javafx.manger.callable.ApiCallable;
|
|
|
|
import xyz.wbsite.dbtool.javafx.po.*;
|
|
|
|
import xyz.wbsite.dbtool.javafx.manger.callable.SBMDBCallable;
|
|
|
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.manger.callable.SpringBootCallable;
|
|
|
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.manger.callable.SpringMVCCallable;
|
|
|
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.manger.callable.VueCallable;
|
|
|
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.po.AbstractDBmapper;
|
|
|
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.po.AndroidOption;
|
|
|
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.po.Api;
|
|
|
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.po.Field;
|
|
|
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.po.Module;
|
|
|
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.po.MySQLDBmapper;
|
|
|
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.po.OracleDBmapper;
|
|
|
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.po.Project;
|
|
|
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.po.SBMDBOption;
|
|
|
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.po.SQLiteDBmapper;
|
|
|
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.po.Table;
|
|
|
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.po.VueOption;
|
|
|
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.tool.Dialog;
|
|
|
|
import xyz.wbsite.dbtool.javafx.tool.Dialog;
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.FilenameFilter;
|
|
|
|
import java.io.FilenameFilter;
|
|
|
|
import java.sql.Connection;
|
|
|
|
import java.sql.*;
|
|
|
|
import java.sql.DriverManager;
|
|
|
|
|
|
|
|
import java.sql.ResultSet;
|
|
|
|
|
|
|
|
import java.sql.SQLException;
|
|
|
|
|
|
|
|
import java.sql.Statement;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.concurrent.Callable;
|
|
|
|
import java.util.concurrent.*;
|
|
|
|
import java.util.concurrent.ExecutionException;
|
|
|
|
|
|
|
|
import java.util.concurrent.ExecutorService;
|
|
|
|
|
|
|
|
import java.util.concurrent.Executors;
|
|
|
|
|
|
|
|
import java.util.concurrent.Future;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class ProjectManager {
|
|
|
|
public class ProjectManager {
|
|
|
|
|
|
|
|
|
|
|
@ -244,7 +220,7 @@ public class ProjectManager {
|
|
|
|
|
|
|
|
|
|
|
|
public void tryGetDBmapper(DataBase dataBase) {
|
|
|
|
public void tryGetDBmapper(DataBase dataBase) {
|
|
|
|
if (dataBase.name().toUpperCase().equals(DataBase.MySQL.name().toUpperCase())) {
|
|
|
|
if (dataBase.name().toUpperCase().equals(DataBase.MySQL.name().toUpperCase())) {
|
|
|
|
dBmapper = new MySQLDBmapper(dataBase);
|
|
|
|
dBmapper = new MySQLDBmapper_(dataBase);
|
|
|
|
} else if (dataBase.name().toUpperCase().equals(DataBase.Oracle.name().toUpperCase())) {
|
|
|
|
} else if (dataBase.name().toUpperCase().equals(DataBase.Oracle.name().toUpperCase())) {
|
|
|
|
dBmapper = new OracleDBmapper(dataBase);
|
|
|
|
dBmapper = new OracleDBmapper(dataBase);
|
|
|
|
} else if (dataBase.name().toUpperCase().equals(DataBase.SQLite.name().toUpperCase())) {
|
|
|
|
} else if (dataBase.name().toUpperCase().equals(DataBase.SQLite.name().toUpperCase())) {
|
|
|
@ -523,7 +499,7 @@ public class ProjectManager {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if ("Mysql".equals(type)) {
|
|
|
|
} else if ("Mysql".equals(type)) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
dBmapper = new MySQLDBmapper(DataBase.MySQL);
|
|
|
|
dBmapper = new MySQLDBmapper_(DataBase.MySQL);
|
|
|
|
|
|
|
|
|
|
|
|
//加载驱动类
|
|
|
|
//加载驱动类
|
|
|
|
Class.forName(driverClassName);
|
|
|
|
Class.forName(driverClassName);
|
|
|
|