This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
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?
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