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

io.github.nichetoolkit.mybatis.MybatisDeleteMapper 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.DeleteMapper;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Lang;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;

/**
 * MybatisDeleteMapper
 * 

The mybatis delete 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.DeleteMapper * @since Jdk1.8 */ public interface MybatisDeleteMapper, I> extends MybatisMapper, DeleteMapper { @Override @Lang(MybatisSqlSourceCaching.class) @DeleteProvider(MybatisSqlProviderResolver.class) Integer deleteById(@Param("id") I id); @Override @Lang(MybatisSqlSourceCaching.class) @DeleteProvider(MybatisSqlProviderResolver.class) Integer deleteDynamicById(@Param("tablename") String tablename, @Param("id") I id); @Override @Lang(MybatisSqlSourceCaching.class) @DeleteProvider(MybatisSqlProviderResolver.class) Integer deleteAll(@Param("idList") Collection idList); @Override @Lang(MybatisSqlSourceCaching.class) @DeleteProvider(MybatisSqlProviderResolver.class) Integer deleteDynamicAll(@Param("tablename") String tablename, @Param("idList") Collection idList); @Override @Lang(MybatisSqlSourceCaching.class) @DeleteProvider(MybatisSqlProviderResolver.class) Integer deleteAllByWhere(@Param("whereSql") String whereSql); @Override @Lang(MybatisSqlSourceCaching.class) @DeleteProvider(MybatisSqlProviderResolver.class) Integer deleteDynamicAllByWhere(@Param("tablename") String tablename, @Param("whereSql") String whereSql); }