本文整理汇总了Java中tk.mybatis.mapper.provider.ConditionProvider类的典型用法代码示例。如果您正苦于以下问题:Java ConditionProvider类的具体用法?Java ConditionProvider怎么用?Java ConditionProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ConditionProvider类属于tk.mybatis.mapper.provider包,在下文中一共展示了ConditionProvider类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateByCondition
import tk.mybatis.mapper.provider.ConditionProvider; //导入依赖的package包/类
/**
* 根据Condition条件更新实体`record`包含的全部属性,null值会被更新
*
* @param record
* @param condition
* @return
*/
@UpdateProvider(type = ConditionProvider.class, method = "dynamicSQL")
int updateByCondition(@Param("record") T record, @Param("example") Object condition);
示例2: selectByConditionAndRowBounds
import tk.mybatis.mapper.provider.ConditionProvider; //导入依赖的package包/类
/**
* 根据example条件和RowBounds进行分页查询,该方法和selectByExampleAndRowBounds完全一样,只是名字改成了Condition
*
* @param condition
* @param rowBounds
* @return
*/
@SelectProvider(type = ConditionProvider.class, method = "dynamicSQL")
List<T> selectByConditionAndRowBounds(Object condition, RowBounds rowBounds);
示例3: updateByConditionSelective
import tk.mybatis.mapper.provider.ConditionProvider; //导入依赖的package包/类
/**
* 根据Condition条件更新实体`record`包含的不是null的属性值
*
* @param record
* @param condition
* @return
*/
@UpdateProvider(type = ConditionProvider.class, method = "dynamicSQL")
int updateByConditionSelective(@Param("record") T record, @Param("example") Object condition);
示例4: selectByCondition
import tk.mybatis.mapper.provider.ConditionProvider; //导入依赖的package包/类
/**
* 根据Condition条件进行查询
*
* @param condition
* @return
*/
@SelectProvider(type = ConditionProvider.class, method = "dynamicSQL")
List<T> selectByCondition(Object condition);
示例5: deleteByCondition
import tk.mybatis.mapper.provider.ConditionProvider; //导入依赖的package包/类
/**
* 根据Condition条件删除数据
*
* @param condition
* @return
*/
@DeleteProvider(type = ConditionProvider.class, method = "dynamicSQL")
int deleteByCondition(Object condition);
示例6: selectCountByCondition
import tk.mybatis.mapper.provider.ConditionProvider; //导入依赖的package包/类
/**
* 根据Condition条件进行查询总数
*
* @param condition
* @return
*/
@SelectProvider(type = ConditionProvider.class, method = "dynamicSQL")
int selectCountByCondition(Object condition);
示例7: updateByCondition
import tk.mybatis.mapper.provider.ConditionProvider; //导入依赖的package包/类
/**
* 根据Condition条件更新实体`record`包含的全部属性,null值会被更新
*
* @param record
* @param condition
* @return
*/
@UpdateProvider(type = ConditionProvider.class, method = "dynamicSQL")
@Options(useCache = false, useGeneratedKeys = false)
int updateByCondition(@Param("record") T record, @Param("example") Object condition);
示例8: updateByConditionSelective
import tk.mybatis.mapper.provider.ConditionProvider; //导入依赖的package包/类
/**
* 根据Condition条件更新实体`record`包含的不是null的属性值
*
* @param record
* @param condition
* @return
*/
@UpdateProvider(type = ConditionProvider.class, method = "dynamicSQL")
@Options(useCache = false, useGeneratedKeys = false)
int updateByConditionSelective(@Param("record") T record, @Param("example") Object condition);