aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes method update in urlyBird Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "method update in urlyBird" Watch "method update in urlyBird" New topic
Author

method update in urlyBird

Gerenne Vives
Ranch Hand

Joined: Feb 05, 2005
Posts: 60
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

Joined: Jul 20, 2004
Posts: 128
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.


SCJP 1.4<br />SCWCD 1.3<br />SCJD<br />SCBCD<br />IBM Xml Cert in progress
Gerenne Vives
Ranch Hand

Joined: Feb 05, 2005
Posts: 60
ok , thanks and the customer id how is generate???
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11503
    
  95

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


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Gerenne Vives
Ranch Hand

Joined: Feb 05, 2005
Posts: 60
ok thanks for your help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: method update in urlyBird