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


Java Param類代碼示例

本文整理匯總了Java中org.apache.ibatis.annotations.Param的典型用法代碼示例。如果您正苦於以下問題:Java Param類的具體用法?Java Param怎麽用?Java Param使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Param類屬於org.apache.ibatis.annotations包,在下文中一共展示了Param類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getAllClassificationsWithKey

import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
@Select("<script>"
    + "SELECT ID, KEY, CATEGORY, TYPE, DOMAIN, NAME, VALID_UNTIL "
    + "FROM CLASSIFICATION "
    + "WHERE KEY = #{key} "
    + "AND DOMAIN = #{domain}"
    + "ORDER BY VALID_FROM DESC"
    + "</script>")
@Results({ @Result(property = "id", column = "ID"),
    @Result(property = "key", column = "KEY"),
    @Result(property = "category", column = "CATEGORY"),
    @Result(property = "type", column = "TYPE"),
    @Result(property = "domain", column = "DOMAIN"),
    @Result(property = "name", column = "NAME"),
    @Result(property = "validUntil", column = "VALID_UNTIL") })
List<ClassificationSummaryImpl> getAllClassificationsWithKey(@Param("key") String key,
    @Param("domain") String domain);
 
開發者ID:Taskana,項目名稱:taskana,代碼行數:17,代碼來源:ClassificationMapper.java

示例2: findAttachmentsByTaskId

import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
@Select("SELECT ID, TASK_ID, CREATED, MODIFIED, CLASSIFICATION_KEY, REF_COMPANY, REF_SYSTEM, REF_INSTANCE, REF_TYPE, REF_VALUE, CHANNEL, RECEIVED, CUSTOM_ATTRIBUTES "
    + "FROM ATTACHMENT "
    + "WHERE TASK_ID = #{taskId}")
@Results(value = {
    @Result(property = "id", column = "ID"),
    @Result(property = "taskId", column = "TASK_ID"),
    @Result(property = "created", column = "CREATED"),
    @Result(property = "modified", column = "MODIFIED"),
    @Result(property = "classification", column = "CLASSIFICATION_KEY", javaType = Classification.class,
        one = @One(select = CLASSIFICATION_FINDBYID)),
    @Result(property = "objectReference.company", column = "REF_COMPANY"),
    @Result(property = "objectReference.system", column = "REF_SYSTEM"),
    @Result(property = "objectReference.systemInstance", column = "REF_INSTANCE"),
    @Result(property = "objectReference.type", column = "REF_TYPE"),
    @Result(property = "objectReference.value", column = "REF_VALUE"),
    @Result(property = "channel", column = "CHANNEL"),
    @Result(property = "received", column = "RECEIVED"),
    @Result(property = "customAttributes", column = "CUSTOM_ATTRIBUTES", jdbcType = JdbcType.BLOB,
        javaType = Map.class, typeHandler = MapTypeHandler.class),
})
List<AttachmentImpl> findAttachmentsByTaskId(@Param("taskId") String taskId);
 
開發者ID:Taskana,項目名稱:taskana,代碼行數:22,代碼來源:AttachmentMapper.java

示例3: IN

import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
@Select("SELECT * FROM WORKBASKET WHERE id IN (SELECT TARGET_ID FROM DISTRIBUTION_TARGETS WHERE SOURCE_ID = #{id})")
@Results(value = {
    @Result(property = "id", column = "ID"),
    @Result(property = "key", column = "KEY"),
    @Result(property = "name", column = "NAME"),
    @Result(property = "description", column = "DESCRIPTION"),
    @Result(property = "owner", column = "OWNER"),
    @Result(property = "domain", column = "DOMAIN"),
    @Result(property = "type", column = "TYPE"),

    @Result(property = "orgLevel1", column = "ORG_LEVEL_1"),
    @Result(property = "orgLevel2", column = "ORG_LEVEL_2"),
    @Result(property = "orgLevel3", column = "ORG_LEVEL_3"),
    @Result(property = "orgLevel4", column = "ORG_LEVEL_4")})

List<WorkbasketSummary> findByDistributionTargets(@Param("id") String id);
 
開發者ID:Taskana,項目名稱:taskana,代碼行數:17,代碼來源:WorkbasketMapper.java

示例4: COUNT

import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
@Select("<script>"
    + "SELECT STATE, COUNT (STATE) as counter "
    + "FROM TASK "
    + "WHERE STATE IN (<foreach collection='status' item='state' separator=','>#{state}</foreach>) "
    + "GROUP BY STATE"
    + "</script>")
@Results({ @Result(column = "STATE", property = "state"), @Result(column = "counter", property = "counter") })
List<TaskStateCounter> getTaskCountForState(@Param("status") List<TaskState> status);
 
開發者ID:Taskana,項目名稱:taskana,代碼行數:9,代碼來源:TaskMonitorMapper.java

示例5: getInfoByName

import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
@Select("select `id`, `name`, `age`, `score` from demo_table where name = #{name}")
DemoInfo getInfoByName(@Param("name") String name);
 
開發者ID:lord-of-code,項目名稱:loc-framework,代碼行數:3,代碼來源:DemoInfoRead.java

示例6: findone

import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
@Select("SELECT * from users where username=#{username}")
User findone(@Param("username") String username);
 
開發者ID:CharleyXu,項目名稱:tulingchat,代碼行數:3,代碼來源:UserMapper.java

示例7: selectByDynamicQuery

import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
@SelectProvider(type = DynamicQueryProvider.class, method = "dynamicSQL")
List<T> selectByDynamicQuery(@Param(MapperConstants.DYNAMIC_QUERY) DynamicQuery<T> dynamicQuery);
 
開發者ID:wz2cool,項目名稱:mybatis-dynamic-query,代碼行數:3,代碼來源:SelectByDynamicQueryMapper.java

示例8: update

import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
void update(@Param("id") int id, @Param("name") String name
, @Param("nameEn")String nameEn, @Param("headImg") String headImg
, @Param("primeAttr") int primeAttr, @Param("bio")String bio);
 
開發者ID:Ulyssesss,項目名稱:dota,代碼行數:4,代碼來源:HeroMapper.java

示例9: update

import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
@UpdateProvider( type = DynamicQueryBuilder.class, method = "buildUpdate")
int update(@Param(PARAM_ENTITY_NAME) T bean);
 
開發者ID:cyanqueen,項目名稱:backbone,代碼行數:3,代碼來源:DynamicMapper.java

示例10: queryProviders

import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
List<ExtensionDai.Providers> queryProviders(
@Param("providerId") String providerId);
 
開發者ID:SINeWang,項目名稱:kiimate,代碼行數:3,代碼來源:ExtensionMapper.java

示例11: selectLastExtensionByName

import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
ExtensionDai.Record selectLastExtensionByName(
@Param("ownerId") String ownerId,
@Param("group") String group,
@Param("name") String name,
@Param("tree") String tree,
@Param("endTime") Date endTime);
 
開發者ID:SINeWang,項目名稱:kiimate,代碼行數:7,代碼來源:ExtensionMapper.java

示例12: loadGlimpse

import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
GlimpsesDai.Publication loadGlimpse(
@Param("subscriberId") String subscriberId,
@Param("id") String id);
 
開發者ID:SINeWang,項目名稱:kiimate,代碼行數:4,代碼來源:GlimpseMapper.java

示例13: findByName

import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
@Select("SELECT id FROM sw_guest WHERE device_mac = #{deviceMac} and router_mac=#{routerMac} and status=0 limit 1")
long findByName(@Param("routerMac") String routerMac, @Param("deviceMac") String deviceMac);
 
開發者ID:rongwei84n,項目名稱:Auts_Assert_manager,代碼行數:3,代碼來源:GuestMapper.java

示例14: selectLastExtensionById

import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
ExtensionDai.Record selectLastExtensionById(
@Param("id") String id,
@Param("endTime") Date endTime);
 
開發者ID:SINeWang,項目名稱:kiimate,代碼行數:4,代碼來源:ExtensionMapper.java

示例15: updateByExampleSelective

import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table order_goods
 *
 * @mbg.generated
 */
int updateByExampleSelective(@Param("record") OrderGoods record, @Param("example") OrderGoodsCriteria example);
 
開發者ID:dianbaer,項目名稱:epay,代碼行數:8,代碼來源:OrderGoodsMapper.java


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