Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

B&S FindByCriteria  RSS feed

 
Kevin Urcioo
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a question about the findByCriteria method. The method takes an array of String objects and returns an array of longs. Does input array of Strings size have to equal the number of fields in a record, so field two is matched to the second String in the input array. Or is it that every value in the input array is compared to all of the fields in a record? It is not clear from the method description.
Thanks.
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kevin,
Welcome to this forum.
Each criteria array element index matches the corresponding field number, any null element meaning "any" for the corresponding field.
Best,
Phil.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!