W
web02
I have a class X with methods that reside off in a server package:
public a(String);
public a(String);
public c(String);
In my program, I have a method M.
I want to call M passing it X.a, X,b or X.c with a string parameter.
I cannot find a way using interfaces and reflection is too slow (400K record
files)..
What is going on is a bit wierd. X gives me access to a legacy
database(ISAM). a, b and c are methods to put specific data items into the
database. If the value is blank, the store isn't to be done. So I thought
I would do something like
M(X.a, "Harry");
M(X.b, someValue);
M(X.c, "Truman");
Then M would check the length of the values and only do the call if length >
0. If someValue is empry, X.b would not be called.
Thanx,
Bill
public a(String);
public a(String);
public c(String);
In my program, I have a method M.
I want to call M passing it X.a, X,b or X.c with a string parameter.
I cannot find a way using interfaces and reflection is too slow (400K record
files)..
What is going on is a bit wierd. X gives me access to a legacy
database(ISAM). a, b and c are methods to put specific data items into the
database. If the value is blank, the store isn't to be done. So I thought
I would do something like
M(X.a, "Harry");
M(X.b, someValue);
M(X.c, "Truman");
Then M would check the length of the values and only do the call if length >
0. If someValue is empry, X.b would not be called.
Thanx,
Bill