This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 17249
    
    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
 
jQuery in Action, 2nd edition
 
subject: Data class
 
Similar Threads
Data Structures in java : Examples
help to check the DataAccess design
Stored Procedure within DAO class ?
Hibernate eager fetching issue
Different layers in jsf application.