Hi all I am new here and just started on My
SCJD assignment.
My assignment is ...... The Contractor assignment.
My problems.....
1) I have decided to create a reusable contractor object that will allow for new contractors to be created and to gather information from the existing database.
I would like to varify that I made a good choice in datatypes for this class as follows (only included most relevant)
Specialities: I chose an arrayList<
String> as it allows for the list to grow dynamically I didnt want an array as there is know knowlege beforehand of how many specialites each contractor has.
size: I chose Byte but I dont know if this was the corect choice. Choice was based on the fact that the supplied database is said to have values of 6(field length) and this is small enough to be stored in a byte BUT what if the company grows in workforce? Should I rather chose Int to allow for this?
2) MVC Yes I am a noobie somwhat and I have done some but not much reading on this. I decided to have a layered application that has 5 classes as follows...
2x GUI classes 1 for web user and one for the users at the office
1x Buisness Layer for the doing the workload of the application (will server both office users and web users)
1x Data Storage class that will store/retrieve the data the same for web and office users
1x Reusable Contractor class
Firstly will this approach work? And secondly will RMI as I understand it allow for web users to access my Blayer untouched? This is how I understand RMI to be?
Just to clarify that up to now I have good understanding on SWING and teh
java foundation classes but have never done any RMI, MVC or database related stuff. From what I read on MVC I understand the importance of a layered application but I could greatly do with a recommendation on a book that can explain its use in java.
Last question..
What is a magic cookie? How am I supposed to use it?
Thank you all in advance.