Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

findByProperty() in the scaffold.sql.AccessBase - Need Additional Parameters  RSS feed

JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to pass additonal parameters rather than using one pair of property/value of parameters in the exising findByProperty() method.
I am using the findByProperty method in the org.apache.commons.scaffold.sql.AccessBase. The findByProperty method takes "only one" pair of property/value as it parameters. As such, visitors of the web site queries all articles in the database by providing 'author' as the property and supply the name of the author (xyz) as value.

I have this field "category" in my database. I want to search and get all the articles written by author(property) with name xyz (value) within; say, the HISTORY category. The value of the category will be supplied by the application developer (NOT BY THE VISITOR of the web site via selecting from a drop-down list and fill out the value in the text field).
I need help in handling this kind of situation. Thanks in advance.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!