aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes OCMJD .URLyBIRD 1.1.2 Version Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "OCMJD .URLyBIRD 1.1.2 Version" Watch "OCMJD .URLyBIRD 1.1.2 Version" New topic
Author

OCMJD .URLyBIRD 1.1.2 Version

Ajit Chauhan
Greenhorn

Joined: Mar 04, 2011
Posts: 10
I got my assignment URLyBird 1.1.2 version

please help me to define the patter to follow in this assignment.

Spent 10 hrs but cannot come to the design pattern for this assignment.

Best Regard
Ajit
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5266
    
  13

Maybe a more concrete description of the problems you have?

To point you in the right direction you have an excellent book, a great paper and an outstanding forum with answers to all your possible questions.


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Ajit Chauhan
Greenhorn

Joined: Mar 04, 2011
Posts: 10
Thanking you.
I appreciate your reply to guide me.

Best regard
Ajit
Ajit Chauhan
Greenhorn

Joined: Mar 04, 2011
Posts: 10
Hello

My Assignment says your data Access class must be called Data.java
But As my project my classes are one for data locking with update, read and delete methods.
another for search ..
do it make effect .
do it mean i need to add locking& unlocking for search methods as well or can say Read, delete & update are data access and search can be different.



Ajit
Ajit Chauhan
Greenhorn

Joined: Mar 04, 2011
Posts: 10
There is one more in my mind..
My Database says just only rooms, and feature but no primary key.
How do I make primary key to access data for a particular hotel room.


please help.
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5266
    
  13

1/ The class implementing the given interface must be called Data.java, so that's a must requirement and as you know: violating such a requirement will result in automatic failure. But you are free to delegate the actual implementation of some (or all) methods to other classes which will do the actual work (e.g. a FileAccess class for all crud-operations, a LockingManager for locking/unlocking)

2/ update and delete methods are the only 2 methods which should be preceded with a call to lock and followed by a call to unlock. So in other words: only records which are locked can be updated or deleted (and should always be unlocked afterwards).

3/ maybe you could use the position of the record in the database file as a primary key, because there is indeed no other given primary key.
Ajit Chauhan
Greenhorn

Joined: Mar 04, 2011
Posts: 10
Thanking you very much.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: OCMJD .URLyBIRD 1.1.2 Version