• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Lock Method On Server

 
Anurag Mishra
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Calling Lock Method From Client
booking(String f_num){
try{
if(f_num=="-1"){
msg=intf.ticketBooking(-1, 0);
warningMessage(msg);
}
Locking Method On Server
public String book(int rec, int tickets)throws DatabaseException{
DataInfo info=null;
String msg=null;
try{
if(rec==-1)
{
lock(rec);
msg="Database locked";
}else
Record Modification
Is This idea is allright any better idea is always welcome
Anurag Mishra
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic