• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

method update in urlyBird

 
Gerenne Vives
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello I have a doubt about the method update in the assignament UrlyBird ,

-the update method arrive a longcookie , I don,t understand thats mean.

-and teh other question is how is generate the customer id , in my assignament said that is supossed that customer id , is know , I don,t understant how is generate.

thanks
 
Zee Ho
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, for the lock cookie, it is sth to identify which one lock the record, when any client want to release the lock (before he do any action except read/find he must lock the record first), he must pass in the same lock cookie. else the SecurityException should be thrown out.

The workflow should be:
1. Client invoke the LockManager to lock the record(record number should pass in) while the lock cookie should be return
2. Other client wait for the record that has been locked
3. Client store the lock cookie in somewhere
4. Client do the action (inser/delete/update)
5. Client release the lock with the record number and lock cookie
6. Other client repeat the step 1 - 5

You can take a look at
Why I lost points in locking

also you can find more material about it by the search engine.
 
Gerenne Vives
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok , thanks and the customer id how is generate???
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Irene,

Check your instructions for the sentence "you should assume that customers and CSRs know their customer ids" (probably in the Database Schema section).

If you have this, then the customer id is entered by the user of the program - you have to allow them some way of entering the number into the system.

Regards, Andrew
 
Gerenne Vives
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok thanks for your help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic