Is there a way to make a method, that given a field name, and any auto generated object, can return the type of that field?

Something like
boolean isFieldAnInteger(BaseObject obj,String fieldName)  {
// What here. (And is BaseObject the correct class to use, if you want to accept something that can be any torque auto generated class?)
}

At first I thought I could do
Class c=obj. getByName(field).getClass();
But that don't work if obj is a newly created object, becasue getByName will return null.

Martin





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to