Hi
Is there a way that I can get a static instance of a peer class by using
Class.forName() or a class loader. I am writing an application that contructs simple
forms for updating databases dynamically by reading the database Map, TableMap and
ColumnMaps an generating the forms on the fly.
When I come to do a select/update/delete I would like to load a static instance by
constructing a string for the class name and then load this class statically.
ie from this :
String class name = "com.mywebsite.application. " + tablename + "Peer";
I know how to get an instance but I want the class as a static as the peer methods are
static and I would like to call them.
Rgrds
John
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001