• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

method update in urlyBird

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok , thanks and the customer id how is generate???
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok thanks for your help
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic