Example #1
0
 public SeachOption() throws Exception {
   String sqlStr = "Select Depth,ThreadCount,StartTime,EndTime from searchconfig";
   DBoperate myoperate = new DBoperate();
   ResultSet rs = myoperate.executeQuery(sqlStr);
   while (rs.next()) {
     Depth = rs.getInt("Depth");
     ThreadCount = rs.getInt("ThreadCount");
     StartTime = rs.getInt("StartTime");
     EndTime = rs.getInt("EndTime");
   }
 }
Example #2
0
 public static List WebsiteList() throws Exception {
   String sqlStr = "Select URL from website where Avaible = 1";
   WebsiteList = DBoperate.resultSetToSingleList(sqlStr);
   return WebsiteList;
 }
Example #3
0
 public static List GetKeywordList() throws Exception {
   String sqlStr = "Select Ename from keyword where IsAvailble = 1";
   KeywordList = DBoperate.resultSetToSingleList(sqlStr);
   return KeywordList;
 }