Class EntityProvider


  • public class EntityProvider
    extends Object
    基础的增删改查操作
    Author:
    liuzh
    • Constructor Summary

      Constructors 
      Constructor Description
      EntityProvider()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static String delete​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
      保存实体信息批量删除
      static String deleteByPrimaryKey​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
      根据主键删除
      static String insert​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
      保存实体
      static String insertSelective​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
      保存实体中不为空的字段
      static String select​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
      根据实体字段条件查询唯一的实体,根据实体字段条件批量查询,查询结果的数量由方法定义
      static String selectByPrimaryKey​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
      根据主键查询实体
      static String selectCount​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
      根据实体字段条件查询总数
      static String unsupported​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
      不可用方法
      static String updateByPrimaryKey​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
      根据主键更新实体
      static String updateByPrimaryKeySelective​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
      根据主键更新实体中不为空的字段
    • Constructor Detail

      • EntityProvider

        public EntityProvider()
    • Method Detail

      • unsupported

        public static String unsupported​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
        不可用方法
        Parameters:
        providerContext - 上下文
        Returns:
        cacheKey
      • insert

        public static String insert​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
        保存实体
        Parameters:
        providerContext - 上下文
        Returns:
        cacheKey
      • insertSelective

        public static String insertSelective​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
        保存实体中不为空的字段
        Parameters:
        providerContext - 上下文
        Returns:
        cacheKey
      • deleteByPrimaryKey

        public static String deleteByPrimaryKey​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
        根据主键删除
        Parameters:
        providerContext - 上下文
        Returns:
        cacheKey
      • delete

        public static String delete​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
        保存实体信息批量删除
        Parameters:
        providerContext - 上下文
        Returns:
        cacheKey
      • updateByPrimaryKey

        public static String updateByPrimaryKey​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
        根据主键更新实体
        Parameters:
        providerContext - 上下文
        Returns:
        cacheKey
      • updateByPrimaryKeySelective

        public static String updateByPrimaryKeySelective​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
        根据主键更新实体中不为空的字段
        Parameters:
        providerContext - 上下文
        Returns:
        cacheKey
      • selectByPrimaryKey

        public static String selectByPrimaryKey​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
        根据主键查询实体
        Parameters:
        providerContext - 上下文
        Returns:
        cacheKey
      • select

        public static String select​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
        根据实体字段条件查询唯一的实体,根据实体字段条件批量查询,查询结果的数量由方法定义
        Parameters:
        providerContext - 上下文
        Returns:
        cacheKey
      • selectCount

        public static String selectCount​(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
        根据实体字段条件查询总数
        Parameters:
        providerContext - 上下文
        Returns:
        cacheKey