Regards, Richard
Originally posted by Richard Jackson:
Hi, all
I want to create a record class to represent all information in each record.
I have two points difficult to understand.
1) If I use any network implementation (like RMI or socket), must I implement Serializable interface?
2) Because the program need to search all records or part of those by name AND/OR location, need I do to put the two arguments into the constructor of record class?
Many problems looks insignificant,but they are able enough to block the process of My assignment.
Thanks in advance.
SCJP 1.4, SCJD
2) Because the program need to search all records or part of those by name AND/OR location, need I do to put the two arguments into the constructor of record class?
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
mike
Yes, any object that is available through your exported Remote object must implement Serializable.
mike
Don't forget the serialVersionUID
Hanna
The only required field (fileds) should be in the constructor is your primary key.
Regards, Richard
Originally posted by Richard Jackson:
The "serialVersionUID" must be needed? Please give me comments.
Yes, I agree. Because primary key is most important element in database.
But how can I do to add and implement the primary key?
SCJP 1.4, SCJD
But how can I do to add and implement the primary key?
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
However, I do not see how the primary key has any meaning.
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
SCJP 1.4, SCJD
My query is regarding the 'abuse' of a Record object just for look up purposes.
That record would never be one of the unique set of database records.
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
SCJP 1.4, SCJD
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
think we are talking about two differnt things here
SCJP 1.4, SCJD
Regards, Richard
The only cure for that is hours of television radiation. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|