public class ExampleProvider extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
EXAMPLE_WHERE_CLAUSE
example 结构的动态 SQL 查询条件,用于接口参数只有一个 Example 对象时
|
static String |
UPDATE_BY_EXAMPLE_WHERE_CLAUSE
example 结构的动态 SQL 查询条件,用于多个参数时,Example 对应 @Param("example")
|
| Constructor and Description |
|---|
ExampleProvider() |
| Modifier and Type | Method and Description |
|---|---|
static String |
countByExample(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
根据 Example 条件查询总数
|
static String |
deleteByExample(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
根据 Example 删除
|
static String |
selectByExample(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
根据 Example 条件批量查询,根据 Example 条件查询总数,查询结果的数量由方法定义
|
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 条件批量更新实体信息
|
public static final String EXAMPLE_WHERE_CLAUSE
public static final String UPDATE_BY_EXAMPLE_WHERE_CLAUSE
public static String deleteByExample(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
providerContext - 上下文public static String updateByExample(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
providerContext - 上下文public static String updateByExampleSetValues(org.apache.ibatis.builder.annotation.ProviderContext providerContext)
providerContext - 上下文public static String updateByExampleSelective(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 - 上下文Copyright © 2022. All rights reserved.