Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Create method: impossible to call from lock/unlock.

 
Anton Golovin
Ranch Hand
Posts: 527
1
  • Mark post as helpful
  • send pies
  • 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.
 
Michael Couck
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic