× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



That might work. I will need to think it through.

Right now I'm using some annotations to map the values needed for Lucene and
the database field name. The values for Lucene are an enum, so maybe I can
just add the DB field name to the enum use a Map with the enum as the key.

In fact, that might even be a little better and less confusing. I will test
it, thanks!

--
James R. Perkins


On Wed, May 13, 2009 at 10:18, Paul Holm <pholm@xxxxxxxxxxxxxxxxx> wrote:

James,

You could use reflection but I don't see it may be necessary. We've had a
lot of success putting a "hashtable" instance in a Bean to provide a
variable number of parameters. You can have simple getters and settings:

Methods on your Java bean

Object getAttribute(String key){}

Void setAttribute(String key, Object o)


This allows you to pass any number of additional parameters on calls where
you pass a bean along.


HTH, Paul Holm

Internal Virus Database is out-of-date.
Checked by AVG.
Version: 7.5.557 / Virus Database: 270.12.11/2089 - Release Date: 4/30/2009
5:53 PM


--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.