Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

which data base to use

 
Roy Augustine
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
My name is Roy. I down loaded the assignment(URLyBird) two weeks ago. I read the assignment many times and confused with the data base part. before downloading the the assignment I thought that for the data base part I have to use some applications like SQL Server or Access and JDBC for accessing data. But there is no mention about any of these stuffs in the .html document. They added my cofusion by providing me with a .db file and I have no idea how to open it or use it. But I did open it using notepad. By going through some of the topics posted here, I end up in a conclusion that I am not supposed to use SQL or soemthing like that or JDBC, is that right?
Then how can I store and process the data?
one more question
They want me to lock a record, using the method,public long lock(int recNo) throws RecordNotFoundException; . What is that lockCookie mean? Is that just a name to some random number that I have to return, and use if I want to access that locked record again, or is that name is of any significance ? like recordNotFoundException is an exception, that lockCookie is of any significance
please help me
thank you
Roy
[ July 09, 2003: Message edited by: Roy Augustine ]
 
Lanuk Jajab
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roy,
I have the same assignment. The db file that you were provided is for all matters and purposes the database.
You have to provide an implementation of the interface that uses this database file to perform CRUD operations.
The 'longCookie' is just your database implementation's way of keeping track of who has which record locked.
Hope this helps.
Thanks
- Lanuk
[ July 08, 2003: Message edited by: Lanuk Jajab ]
 
Roy Augustine
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Lanuk,
Thaks for your reply. Your response is really a help. So all I need to do now is, just implement the interface, so that one can interact with the file they provided . Is that right?
Thanks again
Roy
 
Lanuk Jajab
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roy,
Thats correct. Thats the minimum you would have to do for the "data tier". Depending on your design, you would also have to provide a business tier, and a presentation tier.
You also have to think about a way for your business/presentation tier to interact with your data tier (in standalone mode w/o networking, and using networking) either through RMI or socket-to-socket.
Hope that helps.
- Lanuk.
 
Roy Augustine
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Lanuk,
Thank you so much for your help. Right now I am all set.
Once again thank you so much for your help.
Roy
[ July 09, 2003: Message edited by: Roy Augustine ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic