Hello all!
Dear Members my question is related to Software-engineering approach about DAO (Data Access Object) in three tier architecture.
Am a student and as for the final project of my course I had to develop a three tier web based application..
the approach I choose for my project was I divided my classes into three layers as required by the architecture including a DAO Control class.
and my DAO class has only one function which takes query as in string format from Entity classes and then return the result Set of that query in return.
->* public ResultSet getConnected(String query, int qType) { ... }*
but one of my supervisor said that architecture demands the DAO should be independent from any external interference and the way you are providing query from outside is violating that rule so either store all the queries inside DAO or inherit all the class from DAO.
but I m still a bit confused about it that how it violates the rule and what is is ideal scenario in which DAO shld be used.
!--removed tag-->
No one has replied yet! Why not be the first?
Sign in or Join us (it's free).