开发者

designing for search

I have jsp form with 10 input selection types. I want to design a search component based on these parameters.

Do I have to put more if else conditions based on search criteria?

开发者_运维百科Can anyone tell me how to design this scenario to avoid if else conditions?


In my opinion, Query By Example is the right way to handle these. ORM frameworks like Hibernate provides this functionality out of the box. May be you have to roll your own using prepared statements, named parameters with JDBC.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜