Java – query object pattern

I need to implement a query object pattern in Java for my customizable search interface (webapp being written)

Does anyone know that I can get an example / tutorial of query object pattern (QoP of Martin Fowler)?

Thank you in advance

How do I add a query pattern to an existing Dao pattern?

Solution

The word "mode" in "query object mode" is misplaced (IMHO) This is not a real design pattern "Query object" is just another example of Interpreter pattern A good example is the traditional hibernate criteria API and the modern JPA2 criteria API, which combine builder pattern

About your question:

I suggest taking a look at JPA 2

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>