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