• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

the purpose for the isLock(int):boolean method

 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I work on URLyBird 1.3.3 my DBMain interface has a isLock method



I must implement this method, I understand what the method must do but I don't know if this method is necessary ?

Regards,
Mihai
 
Seb Mathe
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mihai,

IMO, the isLock() method is not necessary, (except for testing purpose, for example putting an assert(isLock(recNo)) after lock(recNo)).

I don't see why a client of your DBMain should call it...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic