Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Confusion about DAO in Three-Tier Architecture!

  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Confusion about DAO in Three-Tier Architecture!

    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.

    please Help, suggest.
    Thankyou!


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,262
    Thanks
    56
    Thanked 2,372 Times in 2,343 Posts

    Default Re: Confusion about DAO in Three-Tier Architecture!

    See posting at Confusion about DAO in Three-Tier Architecture! - Java Forums

Similar Threads

  1. Magic Squares, input confusion
    By bengiles89 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 28th, 2010, 09:40 PM
  2. cross platform architecture in Java/J2ee
    By softwarebuzz in forum Web Frameworks
    Replies: 1
    Last Post: January 9th, 2010, 02:43 PM
  3. Default Access (package access) confusion
    By gauravrajbehl in forum Java Theory & Questions
    Replies: 1
    Last Post: November 18th, 2009, 04:11 AM
  4. Scanner class error "java.lang.Error"
    By Lheviathan in forum What's Wrong With My Code?
    Replies: 2
    Last Post: September 21st, 2009, 03:23 AM
  5. Confusion in creating class with OOPS concept
    By grbsmj in forum Object Oriented Programming
    Replies: 3
    Last Post: May 6th, 2009, 04:14 AM