示例#1
0
	/**
	 * 查询结果集合
	 * 
	 * @return
	 * @throws SQLException
	 */
	public String doquery() {
		query = DataQuery.getInstance(currentPage, titles, tables);
		query.setPagesize(pagesize);
		query.addUserWhere(wheres);
		try {
			result = query.search();
			result.LoadListArray();
			logs = "success!";
		} catch (Exception e) {
			logs = e.getMessage() + e.toString();
		}
		type = "1";
		return SUCCESS;
	}
示例#2
0
 public DataResult runSqlQuery(DataQuery query) {
   try {
     return query.search(sessionFatory.getCurrentSession());
   } catch (Exception e) {
     return null;
   }
 }