if(getUrlString() == null){ throw new Exception("Database URL String is not set."); } if(getUserName() == null){ throw new Exception("Database User Name is not set."); } if (getPassword() == null){ throw new Exception("Database Password is not set."); } if (getDriverName() == null){ throw new Exception("Database Driver Name is not set."); }
一個SQL查詢字符串作為輸入來傳遞。它可為你需要的任何SQL字符串,比如:
SELECT * from mytable; SELECT overdue, name, duedate, description from myactiontable;