Java SQL Type invokeJdbcMethod(Class interfaceClass, String methodName, Class[] argTypes, Object target, Object[] args)

Here you can find the source of invokeJdbcMethod(Class interfaceClass, String methodName, Class[] argTypes, Object target, Object[] args)

Description

invoke Jdbc Method

License

Apache License

Declaration

public static Object invokeJdbcMethod(Class<?> interfaceClass, String methodName, Class<?>[] argTypes,
        Object target, Object[] args) throws SQLException 

Method Source Code


//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);
    }
}

Related

  1. getUDTOwner(String typeName, String dbName, Connection conn)
  2. getValueType(String inputValue)
  3. getVarcharTypeString(Connection conn, int length)
  4. getViewIdsForTypes(Connection connection, String... types)
  5. indexOf(Object[] array, Object objectToFind)
  6. isBinary(int dataType)
  7. isBinary(int jdbcType)
  8. isBoolean(int ct)
  9. isBoolean(int dataType)