You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import xyz.wbsite.dbtool.javafx.manger.ProjectManager;
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
|
|
|
public class TestConnect {
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
|
|
|
HashMap<String, String> map = new HashMap();
|
|
|
|
map.put("url","jdbc:oracle:thin:@127.0.0.1:1521:orcl");
|
|
|
|
map.put("username","JCJ");
|
|
|
|
map.put("password","JCJ");
|
|
|
|
map.put("driverClassName","oracle.jdbc.driver.OracleDriver");
|
|
|
|
boolean b = ProjectManager.testConnect(map);
|
|
|
|
|
|
|
|
ProjectManager.loadMD(map);
|
|
|
|
|
|
|
|
System.out.println(b);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|