• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about DatemodelDbImpl and model !!

 
kelly zeng
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can i put all operation to database in DatamodelDbImpl?example getFieldInfo();getCombo;...
DatamodelDbImpl implements DataInferface .
so my GUI access directly DatamodelDbImpl's
method .
well then ,what do Model (M of MVC)do?
i think all business logic is operation to database .
please tell me which method in Model?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"jessery z"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it
here.
Thanks! and welcome to the JavaRanch!
Mark
 
kelly zeng
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why not reply!!!
help@!
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could yuo explain more as to what your question is about. I am a little confused to the actual question.
A Model represents data that a GUI will show.
As far as my guess to the first part, You will have an interface that will have all the methods of data. But what you might want to do is create a Wrapper class called a Facade, this class will then have methods like bookFlight, fillCOmboBoxes, etc.
I hope that helps and is what you wanted to hear ")
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic