com.github.chengyuxing.sql.plugins.SqlInvokeHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rabbit-sql Show documentation
Show all versions of rabbit-sql Show documentation
Light wrapper of JDBC, support ddl, dml, query, plsql/procedure/function, transaction and manage sql
file.
package com.github.chengyuxing.sql.plugins;
import com.github.chengyuxing.sql.Baki;
import org.jetbrains.annotations.NotNull;
import java.lang.reflect.Method;
@FunctionalInterface
public interface SqlInvokeHandler {
/**
* Handle sql execution result
*
* @param baki baki
* @param sqlRef sql reference (&alias.sqlName)
* @param args args
* @param method invoked method
* @param returnType method return type
* @param returnGenericType method return generic type
* @return execute result
* @throws Throwable throwable
*/
Object handle(@NotNull Baki baki,
@NotNull String sqlRef,
@NotNull Object args,
@NotNull Method method,
@NotNull Class> returnType,
@NotNull Class> returnGenericType) throws Throwable;
}