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

com.github.chengyuxing.sql.plugins.SqlInvokeHandler Maven / Gradle / Ivy

Go to download

Light wrapper of JDBC, support ddl, dml, query, plsql/procedure/function, transaction and manage sql file.

There is a newer version: 9.0.2
Show newest version
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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy