public class LogicalProvider extends Object
NOTE: 使用时需要在实体类字段上声明@LogicalColumn注解
| Constructor and Description |
|---|
LogicalProvider() |
| Modifier and Type | Method and Description |
|---|---|
static String |
countByExample(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
根据 Example 条件查询总数
|
static String |
delete(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
根据实体信息批量删除
|
static String |
deleteByExample(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
根据 Example 删除
|
static String |
deleteByPrimaryKey(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
根据主键逻辑删除
|
static String |
select(org.apache.ibatis.builder.annotation.ProviderContext providerContext) |
static String |
selectByExample(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
根据 Example 条件批量查询,根据 Example 条件查询总数,查询结果的数量由方法定义
|
static String |
selectByPrimaryKey(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
根据主键查找未被逻辑删除的值
|
static String |
selectColumns(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
根据实体字段条件查询唯一的实体,根据实体字段条件批量查询,查询结果的数量由方法定义
|
static String |
selectCount(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
根据实体字段条件查询总数
|
static String |
updateByExample(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
根据 Example 条件批量更新实体信息
|
static String |
updateByExampleSelective(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
根据 Example 条件批量更新实体不为空的字段
|
static String |
updateByExampleSetValues(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
根据 Example 条件批量更新实体信息
|
static String |
updateByPrimaryKey(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
根据主键更新实体
|
static String |
updateByPrimaryKeySelective(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
根据主键更新实体中不为空的字段
|
static String |
updateByPrimaryKeySelectiveWithForceFields(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
根据主键更新实体中不为空的字段,强制字段不区分是否null,都更新
|
public static String select(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
public static String selectColumns(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
providerContext - 上下文public static String selectByExample(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
providerContext - 上下文public static String countByExample(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
providerContext - 上下文public static String selectByPrimaryKey(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
providerContext - 上下文public static String selectCount(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
providerContext - 上下文public static String updateByExample(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
providerContext - 上下文public static String updateByExampleSelective(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
providerContext - 上下文public static String updateByExampleSetValues(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
providerContext - 上下文public static String updateByPrimaryKey(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
providerContext - 上下文public static String updateByPrimaryKeySelective(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
providerContext - 上下文public static String updateByPrimaryKeySelectiveWithForceFields(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
providerContext - 上下文public static String delete(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
providerContext - 上下文public static String deleteByPrimaryKey(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
providerContext - 上下文public static String deleteByExample(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
providerContext - 上下文Copyright © 2023. All rights reserved.