io.github.nichetoolkit.mybatis.MybatisSqlSupply Maven / Gradle / Ivy
Show all versions of mybatis-toolkit-starter Show documentation
package io.github.nichetoolkit.mybatis;
import io.github.nichetoolkit.mybatis.builder.SqlBuilder;
import io.github.nichetoolkit.rest.RestException;
import org.springframework.lang.Nullable;
/**
* MybatisSqlSupply
* The mybatis sql supply interface.
* @author Cyan ([email protected])
* @see io.github.nichetoolkit.mybatis.MybatisOrder
* @since Jdk1.8
*/
public interface MybatisSqlSupply extends MybatisOrder {
/**
* supply
* The supply method.
* @param tablename {@link java.lang.String} The tablename parameter is String
type.
* @param table {@link io.github.nichetoolkit.mybatis.MybatisTable} The table parameter is MybatisTable
type.
* @param sqlScript {@link io.github.nichetoolkit.mybatis.MybatisSqlScript} The sql script parameter is MybatisSqlScript
type.
* @param sqlBuilder {@link io.github.nichetoolkit.mybatis.builder.SqlBuilder} The sql builder parameter is SqlBuilder
type.
* @param parameters {@link java.lang.Object} The parameters parameter is Object
type.
* @return {@link java.lang.String} The supply return object is String
type.
* @throws RestException {@link io.github.nichetoolkit.rest.RestException} The rest exception is RestException
type.
* @see java.lang.String
* @see org.springframework.lang.Nullable
* @see io.github.nichetoolkit.mybatis.MybatisTable
* @see io.github.nichetoolkit.mybatis.MybatisSqlScript
* @see io.github.nichetoolkit.mybatis.builder.SqlBuilder
* @see java.lang.Object
* @see io.github.nichetoolkit.rest.RestException
*/
String supply(@Nullable String tablename, MybatisTable table, MybatisSqlScript sqlScript, SqlBuilder sqlBuilder, Object... parameters) throws RestException;
/**
* AlertSqlSupply
* The alert sql supply interface.
* @author Cyan ([email protected])
* @see io.github.nichetoolkit.mybatis.MybatisSqlSupply.ParameterSqlSupply
* @since Jdk1.8
*/
interface AlertSqlSupply extends ParameterSqlSupply {
@Override
default String supply(String tablename, MybatisTable mybatisTable, SqlBuilder sqlBuilder, Object... parameters) throws RestException {
return supply(tablename, mybatisTable, sqlBuilder, parameters[0]);
}
/**
* supply
* The supply method.
* @param tablename {@link java.lang.String} The tablename parameter is String
type.
* @param mybatisTable {@link io.github.nichetoolkit.mybatis.MybatisTable} The mybatis table parameter is MybatisTable
type.
* @param sqlBuilder {@link io.github.nichetoolkit.mybatis.builder.SqlBuilder} The sql builder parameter is SqlBuilder
type.
* @param statusParameter {@link java.lang.Object} The status parameter parameter is Object
type.
* @return {@link java.lang.String} The supply return object is String
type.
* @throws RestException {@link io.github.nichetoolkit.rest.RestException} The rest exception is RestException
type.
* @see java.lang.String
* @see org.springframework.lang.Nullable
* @see io.github.nichetoolkit.mybatis.MybatisTable
* @see io.github.nichetoolkit.mybatis.builder.SqlBuilder
* @see java.lang.Object
* @see io.github.nichetoolkit.rest.RestException
*/
String supply(@Nullable String tablename, MybatisTable mybatisTable, SqlBuilder sqlBuilder, Object statusParameter) throws RestException;
}
/**
* ParameterSqlSupply
* The parameter sql supply interface.
* @author Cyan ([email protected])
* @since Jdk1.8
*/
interface ParameterSqlSupply extends MybatisSqlSupply {
@Override
default String supply(String tablename, MybatisTable mybatisTable, MybatisSqlScript sqlScript, SqlBuilder sqlBuilder, Object... parameters) throws RestException {
return supply(tablename, mybatisTable, sqlBuilder, parameters);
}
/**
* supply
* The supply method.
* @param tablename {@link java.lang.String} The tablename parameter is String
type.
* @param mybatisTable {@link io.github.nichetoolkit.mybatis.MybatisTable} The mybatis table parameter is MybatisTable
type.
* @param sqlBuilder {@link io.github.nichetoolkit.mybatis.builder.SqlBuilder} The sql builder parameter is SqlBuilder
type.
* @param parameters {@link java.lang.Object} The parameters parameter is Object
type.
* @return {@link java.lang.String} The supply return object is String
type.
* @throws RestException {@link io.github.nichetoolkit.rest.RestException} The rest exception is RestException
type.
* @see java.lang.String
* @see org.springframework.lang.Nullable
* @see io.github.nichetoolkit.mybatis.MybatisTable
* @see io.github.nichetoolkit.mybatis.builder.SqlBuilder
* @see java.lang.Object
* @see io.github.nichetoolkit.rest.RestException
*/
String supply(@Nullable String tablename, MybatisTable mybatisTable, SqlBuilder sqlBuilder, Object... parameters) throws RestException;
}
/**
* SupplySqlSupply
* The supply sql supply interface.
* @author Cyan ([email protected])
* @since Jdk1.8
*/
interface SupplySqlSupply extends MybatisSqlSupply {
@Override
default String supply(String tablename, MybatisTable mybatisTable, MybatisSqlScript sqlScript, SqlBuilder sqlBuilder, Object... parameters) throws RestException {
return supply(tablename, mybatisTable, sqlScript, this, sqlBuilder);
}
/**
* supply
* The supply method.
* @param tablename {@link java.lang.String} The tablename parameter is String
type.
* @param mybatisTable {@link io.github.nichetoolkit.mybatis.MybatisTable} The mybatis table parameter is MybatisTable
type.
* @param sqlScript {@link io.github.nichetoolkit.mybatis.MybatisSqlScript} The sql script parameter is MybatisSqlScript
type.
* @param sqlSupply {@link io.github.nichetoolkit.mybatis.MybatisSqlSupply} The sql supply parameter is MybatisSqlSupply
type.
* @param sqlBuilder {@link io.github.nichetoolkit.mybatis.builder.SqlBuilder} The sql builder parameter is SqlBuilder
type.
* @return {@link java.lang.String} The supply return object is String
type.
* @throws RestException {@link io.github.nichetoolkit.rest.RestException} The rest exception is RestException
type.
* @see java.lang.String
* @see org.springframework.lang.Nullable
* @see io.github.nichetoolkit.mybatis.MybatisTable
* @see io.github.nichetoolkit.mybatis.MybatisSqlScript
* @see io.github.nichetoolkit.mybatis.builder.SqlBuilder
* @see io.github.nichetoolkit.rest.RestException
*/
String supply(@Nullable String tablename, MybatisTable mybatisTable, MybatisSqlScript sqlScript, MybatisSqlSupply sqlSupply, SqlBuilder sqlBuilder) throws RestException;
}
/**
* SimpleSqlSupply
* The simple sql supply interface.
* @author Cyan ([email protected])
* @since Jdk1.8
*/
interface SimpleSqlSupply extends MybatisSqlSupply {
@Override
default String supply(String tablename, MybatisTable mybatisTable, MybatisSqlScript sqlScript, SqlBuilder sqlBuilder, Object... parameters) throws RestException {
return supply(tablename, mybatisTable, sqlBuilder);
}
/**
* supply
* The supply method.
* @param tablename {@link java.lang.String} The tablename parameter is String
type.
* @param mybatisTable {@link io.github.nichetoolkit.mybatis.MybatisTable} The mybatis table parameter is MybatisTable
type.
* @param sqlBuilder {@link io.github.nichetoolkit.mybatis.builder.SqlBuilder} The sql builder parameter is SqlBuilder
type.
* @return {@link java.lang.String} The supply return object is String
type.
* @throws RestException {@link io.github.nichetoolkit.rest.RestException} The rest exception is RestException
type.
* @see java.lang.String
* @see org.springframework.lang.Nullable
* @see io.github.nichetoolkit.mybatis.MybatisTable
* @see io.github.nichetoolkit.mybatis.builder.SqlBuilder
* @see io.github.nichetoolkit.rest.RestException
*/
String supply(@Nullable String tablename, MybatisTable mybatisTable, SqlBuilder sqlBuilder) throws RestException;
}
}