Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Basic DAO pattern question

807569Sep 28 2006 — edited Sep 28 2006
I was told that the best way to implement database is through DAO pattern.
I'be looked at a lot of examples over the net but couldn't understand it right.

let's say I have 2 classes:
1- a main class that needs to access database
2 - class that handles database manipulation (connect to database, add values, delete and etc.)

and I have an Interface with all database manipulation methods, it's implemented by the socond class.

Ok, What I do next?
How do I use DAO pattern?

thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 26 2006
Added on Sep 28 2006
1 comment
232 views