• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple database multiple conneciton problem.

 
Anand Karia
Ranch Hand
Posts: 156
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All!

Wht should i ve 2 do more in this DBConnection class if i ve multiple databases.

like i ve
1. dbAccount04
2. dbSale04
3. dbPurchase04

While working in dbAccounts i also have 2 get result from dbSale and dbPurchase in single form.

plz be informed that that 3 database are changed yearly.



Plz guide me.
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should be used Data Access Object Pattern to solve this problem.

http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html

This will help you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic