io.github.nichetoolkit.mybatis.MybatisFindMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mybatis-toolkit-starter Show documentation
Show all versions of mybatis-toolkit-starter Show documentation
mybatis toolkit starter project for Spring Boot
package io.github.nichetoolkit.mybatis;
import io.github.nichetoolkit.rice.RestId;
import io.github.nichetoolkit.rice.mapper.FindMapper;
import org.apache.ibatis.annotations.Lang;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;
import java.util.Collection;
import java.util.List;
/**
* MybatisFindMapper
* The mybatis find 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.FindMapper
* @since Jdk1.8
*/
public interface MybatisFindMapper, I> extends MybatisMapper, FindMapper {
@Override
@Lang(MybatisSqlSourceCaching.class)
@SelectProvider(MybatisSqlProviderResolver.class)
E findById(@Param("id") I id);
@Override
@Lang(MybatisSqlSourceCaching.class)
@SelectProvider(MybatisSqlProviderResolver.class)
E findDynamicById(@Param("tablename") String tablename, @Param("id") I id);
@Override
@Lang(MybatisSqlSourceCaching.class)
@SelectProvider(MybatisSqlProviderResolver.class)
List findAll(@Param("idList") Collection idList);
@Override
@Lang(MybatisSqlSourceCaching.class)
@SelectProvider(MybatisSqlProviderResolver.class)
List findDynamicAll(@Param("tablename") String tablename, @Param("idList") Collection idList);
@Override
@Lang(MybatisSqlSourceCaching.class)
@SelectProvider(MybatisSqlProviderResolver.class)
List findAllByWhere(@Param("whereSql") String whereSql);
@Override
@Lang(MybatisSqlSourceCaching.class)
@SelectProvider(MybatisSqlProviderResolver.class)
List findDynamicAllByWhere(@Param("tablename") String tablename, @Param("whereSql") String whereSql);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy