当前位置: 首页>>代码示例>>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;未经允许,请勿转载。