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

How many db fiels in the assignment?

 
biang lin
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Should I make two same db fiels in my assignment,one for local mode and the other for remote mode?
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Biang
I would recommend having only the one Data class. You can then use this class inside your server code.
Regards, Andrew
 
biang lin
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Andrew Monkhouse:
Hi Biang
I would recommend having only the one Data class. You can then use this class inside your server code.
Regards, Andrew

Hi,
I meant "db files",not "Data class".In my assignment,it is "db-1x3.db".
And I also think there should be two Data class,for remote mode and local mode respectively.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Biang
Why do you want two database files? I don't believe you are talking about just backing it up so you can deliver it unchanged in your submission.
My reading of the instructions is that you will only have one database file in the submission. This is also how I would see a real life customer operating: they would start with stand alone mode, then when they go networked they will continue using the same database file (otherwise they will loose all the current bookings). Even if they fell back to standalone mode, they would continue to use the same database file.
And I also think there should be two Data class,for remote mode and local mode respectively.

How are you going to do this? You are required to implement an interface in your suncertify.data.Data class. This would imply that there is only one Data class.
Regards, Andrew
 
biang lin
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
OK,I agree with you that there is only one db file.
And there is only one Data class.
But there are two instances of Data class in server side (remote mode) and client side(local mode) respectively, right?
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Biang
Yes, but not at the same time.
Regards, Andrew
 
biang lin
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Andrew .
 
badari gururaj
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I cleared SCJD with 139 last week and i lost 10 points for general considerations. I had two seperate jar files for client and server and each of them had a db.db file and i had also mentioned about this in my design document. My thought was, if these jar files were unjared in seperate machines the db.db file should be available with both of them. I am not sure whether i lost any points for this or not...

cheers
badari
 
biang lin
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for your recommendation, and I will think about it carefully.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic