• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The find method

 
Keith Jones
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

a couple of questions about the find method. The spec for the method states that "A non-null value in criteria[n] matches any field value that begins with criteria[n]" and elsewhere in the document it says that the system must allow the user to search "... for records where the name and/or location fields exactly match values specified by the user".

1. This seems a little confusing to me. Our find method can easily find records where the field value begins with criteria[n] but we are also required to match name and/or location exactly. Taking both of these musts together does this mean "at least exactly match"?

2. I assume that the find method matches a record if all fields match.

Happy new year to all at Java Ranch.

Keith
 
Muhammad Shafique
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See this, it may be helpful..


B&S: Search
 
Keith Jones
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Mohammed
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic