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

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

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

import io.github.nichetoolkit.rice.RestInfo;
import io.github.nichetoolkit.rice.mapper.InfoMapper;
import org.apache.ibatis.annotations.Lang;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * MybatisInfoMapper
 * 

The mybatis info mapper interface.

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

The generic parameter is RestInfo type.

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

The parameter can be of any type.

* @author Cyan ([email protected]) * @see io.github.nichetoolkit.rice.RestInfo * @see io.github.nichetoolkit.mybatis.MybatisSuperMapper * @see io.github.nichetoolkit.rice.mapper.InfoMapper * @since Jdk1.8 */ public interface MybatisInfoMapper, I> extends MybatisSuperMapper, InfoMapper { @Override @Lang(MybatisSqlSourceCaching.class) @SelectProvider(MybatisSqlProviderResolver.class) List findByName(@Param("name") String name, @Param("logic") Object logic); @Override @Lang(MybatisSqlSourceCaching.class) @SelectProvider(MybatisSqlProviderResolver.class) List findDynamicByName(@Param("tablename") String tablename, @Param("name") String name, @Param("logic") Object logic); @Override @Lang(MybatisSqlSourceCaching.class) @SelectProvider(MybatisSqlProviderResolver.class) List findByNameAndNotId(@Param("name") String name, @Param("id") I id, @Param("logic") Object logic); @Override @Lang(MybatisSqlSourceCaching.class) @SelectProvider(MybatisSqlProviderResolver.class) List findDynamicByNameAndNotId(@Param("tablename") String tablename, @Param("name") String name, @Param("id") I id, @Param("logic") Object logic); @Override @Lang(MybatisSqlSourceCaching.class) @SelectProvider(MybatisSqlProviderResolver.class) List findByEntityUnique(@Param("entity") E entity, @Param("logic") Object logic); @Override @Lang(MybatisSqlSourceCaching.class) @SelectProvider(MybatisSqlProviderResolver.class) List findDynamicByEntityUnique(@Param("tablename") String tablename, @Param("entity") E entity, @Param("logic") Object logic); @Override @Lang(MybatisSqlSourceCaching.class) @SelectProvider(MybatisSqlProviderResolver.class) List findByEntityUniqueAndNotId(@Param("entity") E entity, @Param("id") I id, @Param("logic") Object logic); @Override @Lang(MybatisSqlSourceCaching.class) @SelectProvider(MybatisSqlProviderResolver.class) List findDynamicByEntityUniqueAndNotId(@Param("tablename") String tablename, @Param("entity") E entity, @Param("id") I id, @Param("logic") Object logic); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy