Here you can find the source of invokeJdbcMethod(Class> interfaceClass, String methodName, Class>[] argTypes, Object target, Object[] args)
public static Object invokeJdbcMethod(Class<?> interfaceClass, String methodName, Class<?>[] argTypes, Object target, Object[] args) throws SQLException
//package com.java2s; //License from project: Apache License import java.lang.reflect.Method; import java.sql.SQLException; import org.springframework.util.ClassUtils; import org.springframework.util.ReflectionUtils; public class Main { public static Object invokeJdbcMethod(Class<?> interfaceClass, String methodName, Class<?>[] argTypes, Object target, Object[] args) throws SQLException { Method method = ClassUtils.getMethodIfAvailable(interfaceClass, methodName, argTypes); if (method == null) { return null; }/* ww w . j a v a 2s .co m*/ return ReflectionUtils.invokeJdbcMethod(method, target, args); } }