Nutz Dao目前已有以下3个泛型关联查询接口:
1、public T fetchByJoin(Class classOfT, String regex, Condition cnd)
2、public List queryByJoin(Class classOfT, String regex, Condition cnd)
3、public List queryByJoin(Class classOfT, String regex, Condition cnd, Pager pager)
对比上面3个接口,可否再新增这样的3个接口,如您上次回复的那样,第四个参数cnds中的key表示关联的属性(适用于@One、@Many、@ManyMany3种情况),cnds中的value表示left join on后面的关联条件,而第三个参数cnd则表示最终where语句的查询条件:
4、public T fetchByJoin(Class classOfT, String regex, Condition cnd, Map<String, Condition> cnds)
5、public List queryByJoin(Class classOfT, String regex, Condition cnd, Map<String, Condition> cnds)
6、public List queryByJoin(Class classOfT, String regex, Condition cnd, Map<String, Condition> cnds, Pager pager)
另外:由于有些表的个别column是大字段类型,所以query时无需查出来,急盼以下几个接口(Nuz Dao框架中目前没有),locked表示忽略少数字段
针对上面的123:
7、public List query(Class classOfT, Condition cnd,String locked)
8、public List queryByJoin(Class classOfT, String regex, Condition cnd,String locked)
9、public List queryByJoin(Class classOfT, String regex, Condition cnd, Pager pager,String locked)
针对上面的56:
10、public List queryByJoin(Class classOfT, String regex, Condition cnd, Map<String, Condition> cnds,String locked)
11、public List queryByJoin(Class classOfT, String regex, Condition cnd, Map<String, Condition> cnds, Pager pager,String locked)