DAO Design patten and Session Facade pattern

Posted on 2006-05-15
Last Modified: 2013-11-24
Could you explain the Data Access Objects in DAO design pattern

Could to Explain Session Facade pattern with simple,is it applicable tostateless session bean ?

Question by:stmani2005
    LVL 30

    Assisted Solution

    LVL 3

    Assisted Solution

    It will be a good idea to read the non-software examples before you get to the software examples

    For Facade think of any company receptionist . They act as an interface between you and the company department you are dealing with. All you do is call the receptionist and tell her which department you need and you will then be connected .

    In software too using an interface as a first point of contact to the underlying big sub sytmens will make it earlier for the client application to deal with.

    The below  example for facade is explained well
    LVL 9

    Accepted Solution

    The Dao layer contains the classes that contains all the SQL query's in case you work with a database, or all I/O if u work with a file, ...

    Why is it used :
    in case u would change of datasource and avoid refactoring in the other layers.
    For example if u move from MySQL to Oracle, u don't need to change your Business Model layer, only the DAO layer that contains all the DAO classes.
    In your Biz-classes u could have : daoCustomer.getInfo(); and no SQL.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    Title # Comments Views Activity
    dividesSelf challange 15 58
    for loop with Set 4 37
    Starting to learn JAVA, 7 34
    Unexpected HttpURLConnection connection behavior 2 17
    After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    Video by: Michael
    Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now