• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Create method: impossible to call from lock/unlock.

 
Ranch Hand
Posts: 531
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, guys. I have another question, this time related to the create method. This method can not require that a record it is about to create be locked, since it cannot know the record number. My create method reuses deleted records. Here is what I came up with:



Any opinions are welcome, including those which think I overcomplicated things.
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Anton,

Looks pretty good to me.

I will say that it was not specifically mentioned in the spec that the create method was to be implemented. As it turns out I did, as well as the delete if I remember correctly, but I didn't expose these functions to the client, i.e. the gui, so just a book and search function. But the specs are slightly different.

Anyway, looks fine.

See ya

Michael
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic