aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Questions about automatic failure Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Questions about automatic failure" Watch "Questions about automatic failure" New topic
Author

Questions about automatic failure

Luiz Reginaldo Curado
Ranch Hand

Joined: Jan 19, 2006
Posts: 108
I have some questions about automatic failure in the assignment...

1) Have the server have a option to specify the database file location, right?

2) In the client side, one record is booked when the field "customer" has a not blank value. So, a booked record cannot be booked by another client, right?

3) In the client side, one record is booked when the field "customer" has a not blank value. What are you putting in this field?

4) In the client side, one record is booked when the field "customer" has a not blank value. I have to provide a "unbook" method?

5) I think that the "unbook" method is different from the "delete" method. The first could be released and used by several clients, the last makes the record available as "slot" to new records.

6) The assignment do not say nothing about it, I have to provide a implementation of the "create" method in the client GUI? I implemented it in the "Data" class.

Regards,

Luiz Reginaldo
Shan Jun Hao
Ranch Hand

Joined: May 23, 2006
Posts: 39
Erm... maybe you can re-read your instruction again? Everything should be stated there.


SCJP, SCWCD, SCBCD, SCJD (In progress)
Luiz Reginaldo Curado
Ranch Hand

Joined: Jan 19, 2006
Posts: 108
Yeah, Shan, I see all this topics there. But I'm afraid of my understanding of those items... I don't want to receive a "automatic failure" message from Sun.
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
what are your thoughts? Just pasting a laundry list of requirements and asking how everyone else has implemented them is not the way things work here.


42
Luiz Reginaldo Curado
Ranch Hand

Joined: Jan 19, 2006
Posts: 108
Jereon,

> what are your thoughts? Just pasting a laundry list of requirements and > asking how everyone else has implemented them is not the way things work > here.

I'm don't asking how everyone has implemented, I only wanted to know if my understanding of the problem is correct. What's the problem in doing this? We are sharing ideas, not code!
John Hessing
Greenhorn

Joined: Aug 22, 2006
Posts: 3
Hi, I'm brand new here looking for some great idea's and while browsing I saw your questions. Some of them look pretty easy to answer so I just registered myself to do so...

Your question:
1) Have the server have a option to specify the database file location, right?

Answer:
You better should read the instructions on this: I guess you should hold the databasename and hostname and portnumber in a properties file called suncertify.properties. The values must never be edited by hand but always through the gui you create.

Your question:
2) In the client side, one record is booked when the field "customer" has a not blank value. So, a booked record cannot be booked by another client, right?

Answer:
Right!

Your question:
3) In the client side, one record is booked when the field "customer" has a not blank value. What are you putting in this field?

Answer:
The instruction file tells you the answer: you can assume the user to know the clients' ID which must be used to fill the "owner" (that's the name in MY file, maybe it's different from your?) field.

Your question:
4) In the client side, one record is booked when the field "customer" has a not blank value. I have to provide a "unbook" method?

Answer:
Imagine you are the user! Shouldn't you want to be able and correct a wrong chosen room for reservation? Or imagine a client that has booked a room, but decides to cancel it again? I should say: yes, you need to have a way to unbook!

Your question:
5) I think that the "unbook" method is different from the "delete" method. The first could be released and used by several clients, the last makes the record available as "slot" to new records.

Answer:
I agree!

Your question:
6) The assignment do not say nothing about it, I have to provide a implementation of the "create" method in the client GUI? I implemented it in the "Data" class.

Answer:
I guess you should do the implementation just as you did (in the Data class) and simply USE it from your GUI...
Dalton Filho
Greenhorn

Joined: May 27, 2006
Posts: 25
Originally posted by John Hessing:
Your question:
4) In the client side, one record is booked when the field "customer" has a not blank value. I have to provide a "unbook" method?

Answer:
Imagine you are the user! Shouldn't you want to be able and correct a wrong chosen room for reservation? Or imagine a client that has booked a room, but decides to cancel it again? I should say: yes, you need to have a way to unbook!


That would be right if we were talking about a real life application, but this is the SCJD and I don't want to implement more requirements than I need to.


SCJP, SCJD<br />(now studying for SCWCD)
Daniel Massie
Greenhorn

Joined: Jan 08, 2005
Posts: 28
I'd agree with that, if its not stated in the instructions, its not a requirement. Therefore if implemented, its not a specified feature, just something that you thought would be useful.
Adam Nace
Ranch Hand

Joined: Jul 17, 2006
Posts: 117
my thoughts on an Unbook method:

what's the difference between providing an "unbook" method, and simply re-booking the record with a blank customer ID?

Answer: Nothing. It's a design decesion. You can do either.

Just remember this: You have been provided an interface (mine was called DBMain). This interface doesn't supply either a book or unbook method. If you decide to provide a facade or proxy of adapter or whatever you want to call it, with a book and unbook pair, you can do that. But it's not necessary.

I didn't see anywhere in my assignment where it dissalowed "Re-booking", espcially at the DBMain level, where it doesn't even understand the concepts of booking and unbooking.

Hopefully, that answers your question.

- Adam
Luiz Reginaldo Curado
Ranch Hand

Joined: Jan 19, 2006
Posts: 108
Thanks for all replys!

I will share my experience with you after submit my assignment.
[ August 23, 2006: Message edited by: Luiz Reginaldo Curado ]
John Hessing
Greenhorn

Joined: Aug 22, 2006
Posts: 3
Hi all there,

Maybe it's a little bit late to post a new reply on this, but I've been very busy so I've read all the replies just a moment ago.

About the 'unbook' function again: you all say, what not is asked for, we don't need to deliver, wright?
Wrong!!!

Have a look at the last chapter of the instructions ("What to do if you have a question
"). As you can read there, things are left out on purpose. We need to work with "realistically imperfect specifications", just as in real life. So that's why I think you should not only build exactly what is asked for.
Agree?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Questions about automatic failure
 
Similar Threads
GUI display & booking questions
NX: Using SwingUtilties.InvokeAndWait method in GUI
Overwriting values without knowing it
Should lock methods be callable by the client
Passed SCJD with 390 / 400 (97,5%)