File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it just me? SCJD Beta

 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But doesn't it seem with all the extra tasks invovled in this Beta, that one month isn't enough time to complete this project?
Has anyone created their db.db file? Any suggestions on a best approach.
Here's mine for now. I am going to create a fixed length text file for all my actual data. I am writing a MakeData class that will read this text file in, and create a db.db file with all the meta data put into it, then all the data put into it.
Mark
 
Thomas Fly
Ranch Hand
Posts: 164
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark-
I discovered the beta thing when I went to sign up for the current exam. Over a month went by without me hearing a thing from Sun, so I went ahead and paid $250 so I could download the thing and get started. 3 weeks later, I get the email from Sun telling me how to download the beta.
I don't know how I could participate in the beta even if I wanted to now, since I'm so familiar with the existing database code.
Unless you really don't want to part with $400, my advice is to get in on the current exam while you can.
 
Tybon Wu
Ranch Hand
Posts: 84
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm actually doing pretty well timewise. But I got lots of spare time to work on it being recently finished school and only working part time at my current job. My server and other custom classes are done. I am working on the GUI now, and just need to add a few more Swing components and do some testing and the write the docs. I re-read the specs everyday, and really made sure I satisfy all the "must" requirements (wouldn't want to waste all this time and failing it before someone even looks at my code). Creating the db.db was the very first thing I did. I hardcoded a class to write the header and a couple of records. I created a few more mockup records with the createRecord method of the database server, and created the rest of the records with my current GUI. But yeah I think 1 month is a little short if you got a full time job and other commitments...
 
Michael Morris
Ranch Hand
Posts: 3451
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Thomas Fly:
Mark,
...
Unless you really don't want to part with $400, my advice is to get in on the current exam while you can.

Hate to tell you this partner but Mark's a veteran SCJD2. He helped me thru the certification more than anyone. Now don't you feel 3" tall!
Michael Morris
 
Dayanand Kangala
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mark Spritzler:
But doesn't it seem with all the extra tasks invovled in this Beta, that one month isn't enough time to complete this project?
Has anyone created their db.db file? Any suggestions on a best approach.
Here's mine for now. I am going to create a fixed length text file for all my actual data. I am writing a MakeData class that will read this text file in, and create a db.db file with all the meta data put into it, then all the data put into it.
Mark

Hi Mark,
I am also doing the beta exam.
I created a text file containing all the schema details (no.of fields, fieldname, length), sample records and created a file called "DBConfig.java" which will read the above and create the database file.
I got a mail from Evelyn that the database filename should be "db.db". I am not sure where to put the "db.db" file?! Any advice?
And, I have a doubt in the db file. My file has a data called "cookie". Why is this used for?! I have stored a value called 1000 (random number) in the database. Can this field ever be used at all?!
(I was thinking of a scenario where multiple db.db files will be present and a master db.db will contain a mapping between the cookie value and each db.db. The user selects the type of data to access and the application will choose the respective db.db using the master db.db. I thought this is outside the requirement of the beta spec ! so, I am not going to implement this!)
Regards,
Dayanand.
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can put the db.db file anywhere you want. as long as your application can access it in local and remote mode.
cookie is kind of a unique identifier for a client. I was thinking for those that have this signature can just use the RemoteObjects ID as the long cookie.
Not sure what your random number does?
Since the information in the header is in bytes, a text file won't quite be correct. So not sure if that is what you meant.
Tybon, did you need to use more than one method of the OutputStream to write bytes and strings?

Mark
 
Tybon Wu
Ranch Hand
Posts: 84
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark. I used DataOutputStream to write the numeric values and PrintWriter to write textual values in US-ASCII.
4 byte numeric: use DataOutputStream.writeInt()
2 byte numeric: use DataOutputStream.writeShort()
text: use PrintWriter.print()
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic