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;