code: public static Object invokeStaticFunction(Class clazz, String functionName, Class[] parameters, Object[] values) throws MjdbcException {
          Object result = null;
  
          try {
              Method method = clazz.getMethod(functionName, parameters);
              method.setAccessible(true);
              result = method.invoke(null, values);
          } catch (Exception ex) {
              throw new MjdbcException(ex);
          }
  
          return result;
      }
docs: Invokes class function using Reflection
  
  @param clazz        Class which function would be invoked
  @param functionName function name
  @param parameters   function parameters (array of Class)
  @param values       function values (array of Object)
  @return function return
  @throws org.midao.jdbc.core.exception.MjdbcException in case function doesn't exists