All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.javaclub.cdl.client.matrix.jdbc.JdbcMethodInvocation Maven / Gradle / Ivy

The newest version!
package com.github.javaclub.cdl.client.matrix.jdbc;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

public final class JdbcMethodInvocation {
	private final Method method;

	private final Object[] arguments;

	public JdbcMethodInvocation(Method method, Object[] arguments) {
		super();
		this.method = method;
		this.arguments = arguments;
	}

	/**
	 *  调用方法.
	 * 
	 * @param target
	 *            目标对象
	 */
	public void invoke(final Object target) {
		try {
			method.invoke(target, arguments);
		} catch (final IllegalAccessException | InvocationTargetException ex) {
			throw new RuntimeException("Invoke jdbc method exception", ex);
		}
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy