spring-framework / org.springframework.util / ReflectionUtils / invokeJdbcMethod

invokeJdbcMethod

@Nullable open static fun invokeJdbcMethod(method: Method, @Nullable target: Any): Any

Invoke the specified JDBC API Method against the supplied target object with no arguments.

Parameters

method - the method to invoke

target - the target object to invoke the method on

Exceptions

SQLException - the JDBC API SQLException to rethrow (if any)

Return
the invocation result, if any

See Also
#invokeJdbcMethod(java.lang.reflect.Method, Object, Object[])

@Nullable open static fun invokeJdbcMethod(method: Method, @Nullable target: Any, @Nullable vararg args: Any): Any

Invoke the specified JDBC API Method against the supplied target object with the supplied arguments.

Parameters

method - the method to invoke

target - the target object to invoke the method on

args - the invocation arguments (may be null)

Exceptions

SQLException - the JDBC API SQLException to rethrow (if any)

Return
the invocation result, if any

See Also
#invokeMethod(java.lang.reflect.Method, Object, Object[])