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

return type in findbycriteria

 
Andy Zhu
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this method returns a long[], which can hold up to max int -1 divided by 2 number (correct me if I am wrong). So I guess there is really no need of long for a record number. (if criteria contains all null and db doesn't have a deleted record, then this mehtod will return all record numbers). So why do we have a long recNo? maybe a recNo can arbitrarily start from some large number?
 
james airey
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think the int / long record count is one of the subtle differences they throw in to make the assignments different.
i couldn't see any good reason for it to be a long either.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic