File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Owner ID Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Owner ID Question" Watch "Owner ID Question" New topic
Author

Owner ID Question

Richard Everhart
Ranch Hand

Joined: Nov 19, 2003
Posts: 54
My instruction read:


The id value (an 8 digit number) of the customer who has booked this. Note that for this application, you should assume that customers and CSRs know their customer ids. The system you are writing does not interact with these numbers, rather it simply records them. If this field is all blanks, the record is available for sale.


Right now, when the user decides to book a particular contractor the ID value is automatically generated for them before the contractor is booked. After successfully booking the contractor, the random, 8-digit number I've generated appears in the JTable.

I'm beginning to think now that I may want the user to actually enter the number themselves instead of generating it for them. Or, is it even important at all that this number is be displayed? In which case I can continue what I'm doing.

What is everyone else doing?

Rich
mike acre
Ranch Hand

Joined: Sep 23, 2003
Posts: 197
How can you interpret 'CSR's know their customer ID's' to mean it would be okay for your system to generate a random one?

If the CSR knows the ID then that means they must input that value into your system. You must therefore provide a widget that allows them to do just that.

I hardly think that this is open to interpretation, it seems pretty black and white to me, which is rare with the given spec.


SCJP 1.4, SCJD
Richard Everhart
Ranch Hand

Joined: Nov 19, 2003
Posts: 54
Thanks, Mike. Just what I needed.

Rich
Eric Pu
Greenhorn

Joined: Jul 27, 2002
Posts: 23
I also doubt about the ID.
I'd like to provide a JTextField to let the user enter the ID.

I don't know if my solution is right.


SCJP, SCMAD, MCAD<br /> <br />Shanghai,China GMT+0800
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11509
    
  95

Hi Eric,

As Mike just mentioned, the instructions tell us that the CSRs (user of the system) already know the customer IDs. So having a JTextField where the CSR can enter this number will work.

Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Richard Everhart
Ranch Hand

Joined: Nov 19, 2003
Posts: 54
FYI... I've decided to prompt the user for their ID when the client gui is started instead of them having to do it everytime they decide to book a contractor.

Rich
peter wooster
Ranch Hand

Joined: Jun 13, 2004
Posts: 1033
Originally posted by Richard Everhart:
FYI... I've decided to prompt the user for their ID when the client gui is started instead of them having to do it everytime they decide to book a contractor.

Rich


That is wrong for URLyBird, I'm not sure about B&S, but each customer calling the CSR on the phone has a different customer ID. Therefore the CSR cn't just provide it a signon, its a per booking attribute.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Owner ID Question