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 Urlybird 1.1.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Urlybird 1.1.1" Watch "Urlybird 1.1.1" New topic
Author

Urlybird 1.1.1

Alenkhe David
Greenhorn

Joined: Jul 31, 2008
Posts: 20
Just got my assingment downloaded. Any one here working on same project?
Any information on how to implement the datafile?

Thanks

SCJD(urlybird un the way)

[ August 12, 2008: Message edited by: Alenkhe David ]

[ August 12, 2008: Message edited by: Alenkhe David ]
[ August 12, 2008: Message edited by: Alenkhe David ]

Jesus Regins..
Alenkhe David
Greenhorn

Joined: Jul 31, 2008
Posts: 20
Below are the UI requirements for my assingment

It must be composed exclusively with components from the Java Foundation Classes (Swing components).
It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user.
It must present search results in a JTable.
It must allow the user to book a selected record, updating the database file accordingly.

My question is :
Do i provide the UI with create and delete functions; because this methods are in the DB interface.
satishkumar janakiraman
Ranch Hand

Joined: May 03, 2004
Posts: 334
Hi David,

You should follow the must condition in your requirement. According to your requirement, you should provide the functionality in your UI for booking the record. After booking, the corresponding record should be updated in db. You can implement other functionalities in UI but they are not mandatory and also you will not get extra points

I have used RAF for reading the db schema. Btb, my assignment is B&S.

all the best
sat
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2246

Do i provide the UI with create and delete functions; because this methods are in the DB interface.


No, partner.


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Alenkhe David
Greenhorn

Joined: Jul 31, 2008
Posts: 20
Hey guys,

Thanks for the reply, since my UI doesn't need a create and delete functionality. I am thinking of throwing an UnsupportedOperationException i.e in my Data class that implements the DB interface

example code
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2246

What if other GUIs (other than yours) do support these operations and use your implementation of the Data class?
Alenkhe David
Greenhorn

Joined: Jul 31, 2008
Posts: 20
this is the customer id specification:
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.


All the fields in my db file all have thier customer id blank which means its available for sale(booking).

UI specs says :
It must allow the user to book a selected record, updating the database file accordingly.

question is:
do i allow the UI to update the customer id field? because there is no way to book a record with out a customer id.
[ August 14, 2008: Message edited by: Alenkhe David ]
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2246

do i allow the UI to update the customer id field? because there is no way to book a record with out a customer id.


Yes, partner. You have to provide a way for the user to update the record's customer id field, but this is the only field that needs to be updated in the record.
Alenkhe David
Greenhorn

Joined: Jul 31, 2008
Posts: 20
Okay thanks partner.

My spec says something; they take bookings only within 48 hours of the start of room occupancy.

I am going to implement this; below is a test for comparing dates.


did you implement the 48hour rule in your code? i am thinking of roling out my own exception i.e dateoccupancy exception .

Send me your thoughts Thanks.

[ August 14, 2008: Message edited by: Alenkhe David ]
[ August 14, 2008: Message edited by: Alenkhe David ]
Jo´┐Żo Batista
Ranch Hand

Joined: May 25, 2008
Posts: 40
There are many who did not implement the 48-hour.
I implemented in my case, but it was a really simple implementation.
I suggest you document carefully this choice, whatever it is.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11278
    
  59

Alenkhe

Please use one thread per question

Thanks

Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Alenkhe David
Greenhorn

Joined: Jul 31, 2008
Posts: 20
Okay thanks for the info; i would use one thread per question
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Urlybird 1.1.1
 
Similar Threads
interaction with customer id?
URLyBird: Read data file
URLyBird create method
URLybird
Doubt about recNo in URLyBird 1.1.2