Object candObj = ctr.newInstance(new Object[] {type, name, ExpressionType.VARIABLE});
varExpr = (Expression)candObj;
}
catch (NoSuchMethodException nsme)
{
throw new JDOException("Class " + typeName + " has a Query class but has no constructor for variables");
}
catch (IllegalAccessException iae)
{
throw new JDOException("Class " + typeName + " has a Query class but has no constructor for variables");
}
catch (InvocationTargetException ite)
{
throw new JDOException("Class " + typeName + " has a Query class but has no constructor for variables");
}
catch (InstantiationException ie)
{
throw new JDOException("Class " + typeName + " has a Query class but has no constructor for variables");
}
}
else if (type == Boolean.class || type == boolean.class)
{
varExpr = new BooleanExpressionImpl(type, name, ExpressionType.VARIABLE);