Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Java OOP : Database

  Asked By: Nancy    Date: Feb 10    Category: Java    Views: 2058
  

I will programm a mini Java/Database ordering application
(Client,Order,OrderItem...) with
Java.

I "know" the skills of oop, i can also make a DB Design. I can
connect
to a DB (JDBC->mySQL)

But now my problem: I don't know how i can handle all this together.
That means how can
i made a DB update/insert/select and in the same time how i shoold
"update" the Java Objects ("Framework Porblem").

I search now a long time in the internet. What i found was
(MVC,Broker)
etc, but no real sample.
I will not use a Tool who handles this.

Maybe you have a mini sample to solve my problem.

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Rosie Hughes     Answered On: Feb 10
 
Answer #2    Answered By: Freya Brown     Answered On: Feb 10

I think your problem  is that you can not design  your
application; you need assistant of a software engineer
if there is any accusable for you.
But for a short answer if you are designing a j2ee
application (web based) you can read j2ee patterns
available in www.javasoft.com home page.
And if the application is not j2ee then one of the
simplest ways to do this is using MVC pattern (Model
View Controller).
In this architecture you have a view which do all GUI
thing(object and classes,…) and a model which contains
all business logic object (persistence objects,
workers, utility classes, etc) and then the controller
controls the way messages are passed from one to
another,
If you need more assistance in designing your software
send me more info about your project and I will try to
do more help.

 
Didn't find what you were looking for? Find more on Java OOP : Database Or get search suggestion and latest updates.




Tagged: