比如数据库中有表
people
字段 id,name,jobid
表job
字段id,name,type
类似于要保存select a.* from people a,job b where a.jobid = b.id and b.type =1 这样的查询条件,我又不想直接存sql语句
谁能提供一些比较好的设计方法
谢谢
表job
字段id,name,type
类似于要保存select a.* from people a,job b where a.jobid = b.id and b.type =1 这样的查询条件,我又不想直接存sql语句
谁能提供一些比较好的设计方法
谢谢
在每个过滤类中,直接从总结果集中取出自己需要的结果,例如通过Collection的一些操作即可,这些都是基于内存操作,性能好