• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to define the three fields?

 
Richard Jackson
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to my URLyBird assignment,there are 7 fields as follows.
They has its own primitive or String type.
I attempt to define the field variables.

Are their definition correct,especially 'smoking','date','owner'?
Please comment on this.
Regards,
Richard
 
Vlad Rabkin
Ranch Hand
Posts: 555
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Richard,
Why don't you want just define all of them as a String? It will make all things much easier.
Do I need add the variable to describe the customer id?

Customer ID is the owner. So, you have to choose either "owner" or "Customer ID".
Best,
Vlad
 
Richard Jackson
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,Vlad
Why don't you want just define all of them as a String? It will make all things much easier.

I did certainly have the kind of idea.
But considering to define them,just like 'date', they has to be express 'yyyy/mm/dd' date format.
What things can I do?
Thanks in advance.
Regards,
Richard
 
Vlad Rabkin
Ranch Hand
Posts: 555
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Richard,
But considering to define them,just like 'date', they has to be express 'yyyy/mm/dd' date format

1. I didn't see any requirement to validate the input.
2. You don't enter date anway in GUI (only name and location must be entered to search records in db).
You have to read date anyway as pure text (String) from db. So, using Date, Currency and other types would add only headackes... IMO.
I, personally, used only String type as defined in interface (String[] read (int recNo) .
Best,
Vlad
[ November 07, 2003: Message edited by: Vlad Rabkin ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic