本文整理匯總了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);