本文整理匯總了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);
示例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);
示例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);
示例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);
示例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);
示例6: findone
import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
@Select("SELECT * from users where username=#{username}")
User findone(@Param("username") String username);
示例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);
示例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);
示例9: update
import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
@UpdateProvider( type = DynamicQueryBuilder.class, method = "buildUpdate")
int update(@Param(PARAM_ENTITY_NAME) T bean);
示例10: queryProviders
import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
List<ExtensionDai.Providers> queryProviders(
@Param("providerId") String providerId);
示例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);
示例12: loadGlimpse
import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
GlimpsesDai.Publication loadGlimpse(
@Param("subscriberId") String subscriberId,
@Param("id") String id);
示例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);
示例14: selectLastExtensionById
import org.apache.ibatis.annotations.Param; //導入依賴的package包/類
ExtensionDai.Record selectLastExtensionById(
@Param("id") String id,
@Param("endTime") Date endTime);
示例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);