當前位置: 首頁>>代碼示例>>Java>>正文


Java ConditionProvider類代碼示例

本文整理匯總了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);
 
開發者ID:Yanweichen,項目名稱:MybatisGeneatorUtil,代碼行數:10,代碼來源:UpdateByConditionMapper.java

示例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);
 
開發者ID:Yanweichen,項目名稱:MybatisGeneatorUtil,代碼行數:10,代碼來源:SelectByConditionRowBoundsMapper.java

示例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);
 
開發者ID:Yanweichen,項目名稱:MybatisGeneatorUtil,代碼行數:10,代碼來源:UpdateByConditionSelectiveMapper.java

示例4: selectByCondition

import tk.mybatis.mapper.provider.ConditionProvider; //導入依賴的package包/類
/**
 * 根據Condition條件進行查詢
 *
 * @param condition
 * @return
 */
@SelectProvider(type = ConditionProvider.class, method = "dynamicSQL")
List<T> selectByCondition(Object condition);
 
開發者ID:Yanweichen,項目名稱:MybatisGeneatorUtil,代碼行數:9,代碼來源:SelectByConditionMapper.java

示例5: deleteByCondition

import tk.mybatis.mapper.provider.ConditionProvider; //導入依賴的package包/類
/**
 * 根據Condition條件刪除數據
 *
 * @param condition
 * @return
 */
@DeleteProvider(type = ConditionProvider.class, method = "dynamicSQL")
int deleteByCondition(Object condition);
 
開發者ID:Yanweichen,項目名稱:MybatisGeneatorUtil,代碼行數:9,代碼來源:DeleteByConditionMapper.java

示例6: selectCountByCondition

import tk.mybatis.mapper.provider.ConditionProvider; //導入依賴的package包/類
/**
 * 根據Condition條件進行查詢總數
 *
 * @param condition
 * @return
 */
@SelectProvider(type = ConditionProvider.class, method = "dynamicSQL")
int selectCountByCondition(Object condition);
 
開發者ID:Yanweichen,項目名稱:MybatisGeneatorUtil,代碼行數:9,代碼來源:SelectCountByConditionMapper.java

示例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);
 
開發者ID:godlike110,項目名稱:tk-mybatis,代碼行數:11,代碼來源:UpdateByConditionMapper.java

示例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);
 
開發者ID:godlike110,項目名稱:tk-mybatis,代碼行數:11,代碼來源:UpdateByConditionSelectiveMapper.java


注:本文中的tk.mybatis.mapper.provider.ConditionProvider類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。