• Post Reply Bookmark Topic Watch Topic
  • New Topic

NX: Contractors - method find(String [] criteria)

 
Wilder C Rodrigues
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,
Like I said in the last time when I wrote to you, I finished my Data class. So, I was reading my assignment and I saw that I have to search by NAME and/or LOCATION. In my DB interface comments there is an example tha said: For example, "Fred" matches "Fred" or "Freddy".
The field LOCATION isn't mentioned.
What do I do?
Thanks,
Wilder
SCPJ2
 
Rick DeBay
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Find every contractor whose name begins with Fred and lives in New York or Newburg:
String[] criteria = {"Fred","New",null,null,null,null};
long[] results = findByCriteria(criteria);
 
my overalls have superpowers - they repel people who think fashion is important. 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!