I did not change the interface at all.
But there are some instances wherein I need to know if the particular field
is "Owner" or some other field to do some specific logic.
Originally posted by S Bala:
I think both of us are looking at the same problem differently. Besides, I am yet to do the GUI. I have a reference to the Metadata list in my record object, and a getMetaData() in the Record class.
Should I maintain field descriptive names and descriptions, used for JTable and search fields, on the client or you dynamically pack them also in the RecordModel? (see Field class)
Should I provide these method to map columns to its indexes in case table structure changes?
Should I use indexes in RecordModel to identify the appropriate field/value in case columns in the database change their order (findColumnByIndex/ByName)?
Should I care about the order of elements in the array if tablestructure changes or use the fixed initial order as described in database schema in specification?
Should use then this Record class only for read method, or for find, update, create also?
.... if you didn't change the signature of methods in interface.....
DataInfo class doesn't have such a method like
int getFieldNumberByName (String name) or int getFieldNumberByIndex (int index),
which would allow the Client to keep trace of the proper order of columns (in case the database table structure changes).
How far did go by FBN to provide this flexibility?
why does the class DataInfo has
private FieldInfo [] fields;
at all?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Just want to check - we are talking about using these methods in an interface you have created for clients to access your server. We are not talking about changing Sun's interface. Correct?
I did a lookup on the expected column name to get the index of the column, and then rendered that column as Integers
"I'm not back." - Bill Harding, Twister
[Jim]: So this means that in the future I should just wait for Andrew to post.
[Vlad]: I absolutely understand your comments!
[Vlad]: Sun [...] will not be able to test it in network mode
[Vlad] there is on requirement: "Network server functionality for the database system"
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
[Vlad]: I absolutely understand your comments!
[Andrew]: We can fix that
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |