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

com.obatis.orm.mapper.CommonMapper Maven / Gradle / Ivy

The newest version!
package com.obatis.orm.mapper;

import com.obatis.orm.sql.SqlProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface CommonMapper {

    @SelectProvider(type = SqlProvider.class, method = "find")
    R find(@Param("request") Map param, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "find")
    Integer findInteger(@Param("request") Map param, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "find")
    BigInteger findBigInteger(@Param("request") Map param, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "find")
    Long findLong(@Param("request") Map param, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "find")
    Double findDouble(@Param("request") Map param, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "find")
    BigDecimal findBigDecimal(@Param("request") Map param, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "find")
    Date findDate(@Param("request") Map param, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "find")
    LocalDate findLocalDate(@Param("request") Map param, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "find")
    LocalDateTime findLocalDateTime(@Param("request") Map param, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "find")
    LocalTime findLocalTime(@Param("request") Map param, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "find")
    String findString(@Param("request") Map param, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "find")
    List list(@Param("request") Map param, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "replaceSql")
    R findBySql(String sql, @Param("request") List list);

    @SelectProvider(type = SqlProvider.class, method = "replaceSql")
    List listBySql(String sql, @Param("request") List list);

    @SelectProvider(type = SqlProvider.class, method = "replaceSql")
    List> listMapBySql(String sql, @Param("request") List list);

    @SelectProvider(type = SqlProvider.class, method = "pageSql")
    List page(String sql, @Param("request") Map params);

    @SelectProvider(type = SqlProvider.class, method = "find")
    List listInteger(@Param("request") Map params, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "find")
    List listBigInteger(@Param("request") Map params, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "find")
    List listLong(@Param("request") Map params, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "find")
    List listDouble(@Param("request") Map params, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "find")
    List listBigDecimal(@Param("request") Map params, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "find")
    List listString(@Param("request") Map params, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "find")
    List listDate(@Param("request") Map params, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "find")
    List listLocalDate(@Param("request") Map params, String tableName);

    @SelectProvider(type = SqlProvider.class, method = "find")
    List listLocalDateTime(@Param("request") Map params, String tableName);
}