1 43 package net.jforum.dao.sqlserver; 44 45 import java.util.Date ; 46 import java.util.List ; 47 48 import net.jforum.util.preferences.SystemGlobals; 49 50 54 public class SqlServerKarmaDAO extends net.jforum.dao.generic.GenericKarmaDAO 55 { 56 59 public List getMostRatedUserByPeriod(int start, Date firstPeriod, Date lastPeriod, String orderField) 60 throws Exception 61 { 62 String sql = SystemGlobals.getSql("GenericModel.selectByLimit") + " " + start + " " 63 + SystemGlobals.getSql("KarmaModel.getMostRatedUserByPeriod"); 64 String orderby = " ORDER BY " + orderField + " DESC"; 65 sql += orderby; 66 67 return super.getMostRatedUserByPeriod(sql, start, firstPeriod, lastPeriod, orderField); 68 } 69 } 70 | Popular Tags |