aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Data class 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 "Data class" Watch "Data class" New topic
Author

Data class

Gurpreet Saini
Ranch Hand

Joined: Jun 09, 2002
Posts: 295
Hi reader,
I had extended my Data class. Shall I eliminate lock and unlock methods from there ?. Or shall they remain where they are.
Thank you,
Vikas Sood
Ranch Hand

Joined: Sep 03, 2002
Posts: 109
Originally posted by Gurpreet Saini:
Hi reader,
I had extended my Data class. Shall I eliminate lock and unlock methods from there ?. Or shall they remain where they are.
Thank you,

I think as we are not supposed to implement the locking in local mode,we can leave the lock and unlock methods as it is.
Vikas
[ October 24, 2002: Message edited by: Vikas Sood ]
Gurpreet Saini
Ranch Hand

Joined: Jun 09, 2002
Posts: 295
hi vikas,
I have one common interface which is implemented by two specialized classes. They are LocalDataAccess and RemoteDataAccess. Both have thier lock and unlock methods. My question is the lock/unlock methods of Data class should be eliminated or not ?.
thank you,
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

I'd keep the methods in there, but not implemented. And you comment that the LockManager handles locks for the Data class and therefore this method remains blank.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Vikas Sood
Ranch Hand

Joined: Sep 03, 2002
Posts: 109
Hi Gurpreet,
I agree with mark ,leavethe methods of Data and lLocalData empty.And do not remove the methods from Data class.As this Database structure might get upgraded in future implementations.
VikasSood
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Data class