J Deckarm wrote:the class doesn't have a plain get() method only findAll(). in this form is this a complete DAO pattern? in my understanding statement III is correct, so eventually the answer should be E?
I don't think a DAO must have a specific set of methods. A DAO is about retrieving and storing data. It provides some specific data operations, but there is no requirement about which data operations it should have. And using this class you can retrieve data (using
findAll) and manipulate data (using
create,
update, and
delete methods), so that's valid for a data access object. So although most interfaces will have a
get method, it's not a requirement.
Hope it helps!
Kind regards,
Roel