• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

B&S 2.3.2 fields of a record

 
Patrick Jansen
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a doubt about if the flag of the record is considered as a field of a record or not.
For example, my "read" method:

have to return:
String[0] = record's flag
String[1] = name
String[2] = location
...
or:
String[0] = name
String[1] = location
...
?

So, "fields of a record" means flag+name+location... or name+location... (I think name+location... without the flag).

Thank you.
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy, Patrick!

Champion, you don't really have to include the record's flag in the String array that will be returned; after all, if you were able to read it, then it is a valid record, otherwise, a RecordNotFoundException should be thrown.
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Patrick (and all others),

The JavaRanch has a great search-function, so time to promote it (it really deserves it). If i used to quick search function (besides the "new topic" button) and entered "flag part array record" (without the quotes) I got 2 threads discussing exactly the same question:
  • thread 1
  • thread 2


  • Kind regards,
    Roel
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic