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

io.github.nichetoolkit.mybatis.MybatisOperateMapper Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package io.github.nichetoolkit.mybatis;

import io.github.nichetoolkit.rice.RestId;
import io.github.nichetoolkit.rice.mapper.OperateMapper;
import org.apache.ibatis.annotations.Lang;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.UpdateProvider;

import java.util.Collection;

/**
 * MybatisOperateMapper
 * 

The mybatis operate mapper interface.

* @param {@link io.github.nichetoolkit.rice.RestId}

The generic parameter is RestId type.

* @param {@link java.lang.Object}

The parameter can be of any type.

* @author Cyan ([email protected]) * @see io.github.nichetoolkit.rice.RestId * @see io.github.nichetoolkit.mybatis.MybatisMapper * @see io.github.nichetoolkit.rice.mapper.OperateMapper * @since Jdk1.8 */ public interface MybatisOperateMapper, I> extends MybatisMapper, OperateMapper { @Override @Lang(MybatisSqlSourceCaching.class) @UpdateProvider(MybatisSqlProviderResolver.class) Integer operateById(@Param("id") I id, @Param("operate") Integer operate); @Override @Lang(MybatisSqlSourceCaching.class) @UpdateProvider(MybatisSqlProviderResolver.class) Integer operateDynamicById(@Param("tablename") String tablename, @Param("id") I id, @Param("operate") Integer operate); @Override @Lang(MybatisSqlSourceCaching.class) @UpdateProvider(MybatisSqlProviderResolver.class) Integer operateAll(@Param("idList") Collection idList, @Param("operate") Integer operate); @Override @Lang(MybatisSqlSourceCaching.class) @UpdateProvider(MybatisSqlProviderResolver.class) Integer operateDynamicAll(@Param("tablename") String tablename, @Param("idList") Collection idList, @Param("operate") Integer operate); @Override @Lang(MybatisSqlSourceCaching.class) @UpdateProvider(MybatisSqlProviderResolver.class) Integer operateAllByWhere(@Param("whereSql") String whereSql, @Param("operate") Integer operate); @Override @Lang(MybatisSqlSourceCaching.class) @UpdateProvider(MybatisSqlProviderResolver.class) Integer operateDynamicAllByWhere(@Param("tablename") String tablename, @Param("whereSql") String whereSql, @Param("operate") Integer operate); }