• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

string null value

 
Yuan Ye
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI, all.
What does it mean of "null value of a String"? Is it
a) String a = null; or b) String a = "null";
Should I use a or b as a matcher for any string in the find() method?
Thanks
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Peter,
What does it mean of "null value of a String"? Is it
a) String a = null; or b) String a = "null";
Should I use a or b as a matcher for any string in the find() method?

Server-side, solution a) IMO, meaning that null means null with no quotes.
Client-side in the "find" context, "null" means "any". Depending on your UI choices, it can be "[Any]" (as a special ComboBox item) or some "All records" CheckBox, or any other way you may find to translate the technical server-side null in something which makes sense for the user.
Best,
Phil.
 
Yuan Ye
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic