Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Urlybird 1.1.1

 
Alenkhe David
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Alenkhe David
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do i provide the UI with create and delete functions; because this methods are in the DB interface.


No, partner.
 
Alenkhe David
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What if other GUIs (other than yours) do support these operations and use your implementation of the Data class?
 
Alenkhe David
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 11945
212
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alenkhe

Please use one thread per question

Thanks

Andrew
 
Alenkhe David
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay thanks for the info; i would use one thread per question
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic