Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Websphere 3.5 - FinderHelper Interface

 
kelly schellenberger
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using TogetherJ to deploy EJB's to Websphere 3.5. TogetherJ's deployment tool generates a FinderHelper interface that includes finder query strings.
i.e. String findAllQueryString = "";
Each of these query strings are set to blank...I'm wondering if these can be left blank? What is the FinderHelper interface used for? What is the effect of a query string being left blank?
If the query string's cannot be left blank, what should they be set to?
Thanks!
 
Andrew Tarkhov
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For CMP you should define Query string for finder method, for example:
final static String findAllQueryString = "SELECT * FROM SCHEMA.TABLE T1 WHERE T1.ID > ?";
i.e. standard SQL SELECT request (T1 - table alias, ID - name of column).
In this case you finder method have to look like this:
java.util.Enumeration findAllQueryString(int num) throws ...
Regards,
Andrew
Originally posted by kelly schellenberger:
I am using TogetherJ to deploy EJB's to Websphere 3.5. TogetherJ's deployment tool generates a FinderHelper interface that includes finder query strings.
i.e. String findAllQueryString = "";
Each of these query strings are set to blank...I'm wondering if these can be left blank? What is the FinderHelper interface used for? What is the effect of a query string being left blank?
If the query string's cannot be left blank, what should they be set to?
Thanks!

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic