Exemplo n.º 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");
   }
 }
Exemplo n.º 2
0
 public static List WebsiteList() throws Exception {
   String sqlStr = "Select URL from website where Avaible = 1";
   WebsiteList = DBoperate.resultSetToSingleList(sqlStr);
   return WebsiteList;
 }
Exemplo n.º 3
0
 public static List GetKeywordList() throws Exception {
   String sqlStr = "Select Ename from keyword where IsAvailble = 1";
   KeywordList = DBoperate.resultSetToSingleList(sqlStr);
   return KeywordList;
 }