• Post Reply Bookmark Topic Watch Topic
  • New Topic

NX: URlyBird 1.1.3 - RecordNotFoundException

 
S Bala
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • 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.
 
Mike Southgate
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!