Hi, In my network design,I have a method dobook(DataInfo data,RemoteInterface remote) in my client.But how can I get the record number? Could I invoke the DataInfo.getRecordNumber() in the client?I'm not sure wether the client has the DataInfo.class?
I am not sure what you are asking. But I know both client and server will have datainfo class. So don't worry about that. YING REN
Joined: Aug 21, 2002
hi, I am confused about the visibility of DataInfo and FieldInfo class. they should belong to suncertify.db, and invisible to Client( in network mode). but they are required by spec. to return to the Client. I see somebody do that with a vector. Is that right? How about you?
I too felt that DataInfo and Data should be invisible to the client. My rationale is what if the database is swapped out? Although I certainly could see where the assignment doesn't require it. I am just not comfortable with having a client rely on the internal workings of the database. So basically I created a kind of "JDBC-light" protocol to handle my database access.
Joined: Jan 30, 2002
I too felt that DataInfo and Data should be invisible to the client.
If you use a Facade on the client that knows of DataInfo and FieldInfo but no other classes in the client have such knowledge, why is that a problem? Somewhere, at some point, some class is going to have to deal with translating those classes into something meaningful. If the the database is changed out, you change one class and bingo, back in business. No matter where the translation occurs, some class or classes will require adjustment if databases are changed. Michael Morris
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com