资 源 简 介
Quick Introduction
The Problexi Common DAO Library is a simple Java API written with the goal of assisting developers write more data source generic, or ambiguous, Data Access Objects (DAOs).
By definition, a DAO is supposed to encapsulate its underlying data source such that its caller has no idea where the data is actually coming from. It could be a database, web service, or even an in-memory data structure such as a graph.
In a well architected application, the data access layer, which is usually the layer that houses DAOs among other things, is invoked by the service layer. The service layer is, in return, invoked by the presentation layer.
So the big question usually is, how to pass general information like filtering or ordering criteria from the presentation layer up to the data access layer in a fashion that is not specific to the data source?
To address this question, developers either end up writing methods for each possible crite