Hi,

> Alternatively you could generate the code and then you wouldn't have the
> overhead of reflection at runtime.

True... however this would still make the code more cluttered and more
difficult to maintain

> One thing you miss with the generic approach is type-safety.

Also true, but I'd say this is negligible in this case. For example, I have a
lot of methods like:

  public Vector getProjects(String whereCondition);
  public Vector getProjectClasses(String whereCondition);

Returning a Vector spoils type-safety anyway, so there should be no
difference if I use:

  public Vector getRecords(String tableName, String whereCondition);

cu
Heiko

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to