This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Urlybird 1.1.1

 
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.
 
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
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • 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: 2292
3
Eclipse IDE Spring Java
  • 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: 2292
3
Eclipse IDE Spring Java
  • 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 ]
 
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.
 
author and jackaroo
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • 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
    Bookmark Topic Watch Topic
  • New Topic