Package com.epam.ta.reportportal.dao
Class ItemAttributeRepositoryCustomImpl
- java.lang.Object
-
- com.epam.ta.reportportal.dao.ItemAttributeRepositoryCustomImpl
-
- All Implemented Interfaces:
ItemAttributeRepositoryCustom
@Repository public class ItemAttributeRepositoryCustomImpl extends java.lang.Object implements ItemAttributeRepositoryCustom
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.IntegerATTRIBUTES_LIMIT
-
Constructor Summary
Constructors Constructor Description ItemAttributeRepositoryCustomImpl(org.jooq.DSLContext dslContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>findAllKeysByLaunchFilter(Queryable launchFilter, org.springframework.data.domain.Pageable launchPageable, boolean isLatest, java.lang.String keyPart, boolean isSystem)RetrievesLaunchandTestItemItemAttribute.getKey()by project id and part of theItemAttribute.getKey().java.util.List<java.lang.String>findLaunchAttributeKeys(java.lang.Long projectId, java.lang.String value, boolean system)Retrieves launch attribute keys by project and part of value.java.util.List<java.lang.String>findLaunchAttributeValues(java.lang.Long projectId, java.lang.String key, java.lang.String value, boolean system)Retrieves launch attribute values by project, specified key and part of value.java.util.List<java.lang.String>findTestItemAttributeKeys(java.lang.Long launchId, java.lang.String value, boolean system)Retrieves test item attribute keys by launch and part of value.java.util.List<java.lang.String>findTestItemAttributeValues(java.lang.Long launchId, java.lang.String key, java.lang.String value, boolean system)Retrieves test item attribute values by launch, specified key and part of value.intsaveByItemId(java.lang.Long itemId, java.lang.String key, java.lang.String value, boolean isSystem)Save item attribute byTestItem.itemIdintsaveMultiple(java.util.List<ItemAttributePojo> itemAttributes)Method for batch inserting of theItemAttribute.
-
-
-
Method Detail
-
findAllKeysByLaunchFilter
public java.util.List<java.lang.String> findAllKeysByLaunchFilter(Queryable launchFilter, org.springframework.data.domain.Pageable launchPageable, boolean isLatest, java.lang.String keyPart, boolean isSystem)
Description copied from interface:ItemAttributeRepositoryCustomRetrievesLaunchandTestItemItemAttribute.getKey()by project id and part of theItemAttribute.getKey().- Specified by:
findAllKeysByLaunchFilterin interfaceItemAttributeRepositoryCustom- Parameters:
launchFilter-QueryablewithFilterTarget.LAUNCH_TARGETlaunchPageable-Pageablefor launches sorting and limitationisLatest- Flag defines whether all or latest launches launches will be included in the query conditionkeyPart- Part of theItemAttribute.getKey()isSystem-ItemAttribute.isSystem()- Returns:
Listof matched attribute keys
-
findLaunchAttributeKeys
public java.util.List<java.lang.String> findLaunchAttributeKeys(java.lang.Long projectId, java.lang.String value, boolean system)Description copied from interface:ItemAttributeRepositoryCustomRetrieves launch attribute keys by project and part of value. Used for autocompletion functionality- Specified by:
findLaunchAttributeKeysin interfaceItemAttributeRepositoryCustom- Parameters:
projectId- Id of projectvalue- part of key- Returns:
- List of matched attribute keys
-
findLaunchAttributeValues
public java.util.List<java.lang.String> findLaunchAttributeValues(java.lang.Long projectId, java.lang.String key, java.lang.String value, boolean system)Description copied from interface:ItemAttributeRepositoryCustomRetrieves launch attribute values by project, specified key and part of value. Used for autocompletion functionality- Specified by:
findLaunchAttributeValuesin interfaceItemAttributeRepositoryCustom- Parameters:
projectId- Id of projectkey- Specified keyvalue- Part of value- Returns:
- List of matched attribute values
-
findTestItemAttributeKeys
public java.util.List<java.lang.String> findTestItemAttributeKeys(java.lang.Long launchId, java.lang.String value, boolean system)Description copied from interface:ItemAttributeRepositoryCustomRetrieves test item attribute keys by launch and part of value. Used for autocompletion functionality- Specified by:
findTestItemAttributeKeysin interfaceItemAttributeRepositoryCustom- Parameters:
launchId- Id of launchvalue- part of key- Returns:
- List of matched attribute keys
-
findTestItemAttributeValues
public java.util.List<java.lang.String> findTestItemAttributeValues(java.lang.Long launchId, java.lang.String key, java.lang.String value, boolean system)Description copied from interface:ItemAttributeRepositoryCustomRetrieves test item attribute values by launch, specified key and part of value. Used for autocompletion functionality- Specified by:
findTestItemAttributeValuesin interfaceItemAttributeRepositoryCustom- Parameters:
launchId- Id of launchkey- Specified keyvalue- Part of value- Returns:
- List of matched attribute values
-
saveByItemId
public int saveByItemId(java.lang.Long itemId, java.lang.String key, java.lang.String value, boolean isSystem)Description copied from interface:ItemAttributeRepositoryCustomSave item attribute byTestItem.itemId- Specified by:
saveByItemIdin interfaceItemAttributeRepositoryCustom- Parameters:
itemId-ItemAttribute.testItemIDkey-ItemAttribute.keyvalue-ItemAttribute.valueisSystem-ItemAttribute.system- Returns:
- 1 if inserted, otherwise 0
-
saveMultiple
public int saveMultiple(java.util.List<ItemAttributePojo> itemAttributes)
Description copied from interface:ItemAttributeRepositoryCustomMethod for batch inserting of theItemAttribute. Used for performance improvement- Specified by:
saveMultiplein interfaceItemAttributeRepositoryCustom- Parameters:
itemAttributes- TheListof theItemAttributePojo- Returns:
- Number of inserted records
-
-