• 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

NX: URlyBird 1.1.3 - RecordNotFoundException

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When do we throw RecordNotFoundException?
My interpretation is that during every database operation, do a check of the record the client has with the same record in the database field by field, except in null values. If the check returns false throw a RecordNotFoundException.
is this ok.
thanks.
 
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My assignment specifies the methods in the xfc that throw it. If yours doesn't I'd say any time you look for a record that is logically deleted or beyond the last record in the file, you'd throw one.
ms
 
S Bala
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My earlier statement should have read, How to throw RecordNotFoundException . (Sorry about that)
What comparison should be done to identify that a particular record is changed.
Do we need to compare all the fields or just a primary key we assign to teh record.
 
S Bala
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How are u all implementing compare?
Client A is seeing bunch of records on his screen. Client wants to modify a record for eg. the size of the room.
ClientB: in the mean time has changed the size or some other field of the record.
Should client A be thrown a recordnotfoundexception? because the original record has been modified, but the record number is still the same.

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