コード例 #1
0
ファイル: PageUtil.java プロジェクト: skywalkerw/superquery
 public static StringBuffer makeConditionPageByQueryid(
     String queryid, LinkedCaseInsensitiveMap<Object> param) throws SuperQueryException {
   ConditionBean condition;
   StringBuffer ret = new StringBuffer();
   try {
     condition = new ConditionBean(queryid, param);
     ret.append(condition.toHtml());
   } catch (SuperQueryException e) {
     throw e;
   }
   return wrapByHtmlBody(ret, QueryconfLoader.instance().getConf(queryid).getBo().getQueryname());
 }
コード例 #2
0
 // ===================================================================================
 //                                                                          DisplaySql
 //                                                                          ==========
 public static String convertConditionBean2DisplaySql(
     SqlAnalyzerFactory factory,
     ConditionBean cb,
     String logDateFormat,
     String logTimestampFormat) {
   final String twoWaySql = cb.getSqlClause().getClause();
   return SqlAnalyzer.convertTwoWaySql2DisplaySql(
       factory, twoWaySql, cb, logDateFormat, logTimestampFormat);
 }