Package com.epam.ta.reportportal.dao
Interface ItemAttributeRepositoryCustom
-
- All Known Subinterfaces:
ItemAttributeRepository
- All Known Implementing Classes:
ItemAttributeRepositoryCustomImpl
public interface ItemAttributeRepositoryCustom
-
-
Method Summary
All Methods Instance Methods Abstract 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
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().- 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
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. Used for autocompletion functionality- Parameters:
projectId- Id of projectvalue- part of key- Returns:
- List of matched attribute keys
-
findLaunchAttributeValues
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. Used for autocompletion functionality- Parameters:
projectId- Id of projectkey- Specified keyvalue- Part of value- Returns:
- List of matched attribute values
-
findTestItemAttributeKeys
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. Used for autocompletion functionality- Parameters:
launchId- Id of launchvalue- part of key- Returns:
- List of matched attribute keys
-
findTestItemAttributeValues
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. Used for autocompletion functionality- Parameters:
launchId- Id of launchkey- Specified keyvalue- Part of value- Returns:
- List of matched attribute values
-
saveByItemId
int saveByItemId(java.lang.Long itemId, java.lang.String key, java.lang.String value, boolean isSystem)Save item attribute byTestItem.itemId- Parameters:
itemId-ItemAttribute.testItemIDkey-ItemAttribute.keyvalue-ItemAttribute.valueisSystem-ItemAttribute.system- Returns:
- 1 if inserted, otherwise 0
-
saveMultiple
int saveMultiple(java.util.List<ItemAttributePojo> itemAttributes)
Method for batch inserting of theItemAttribute. Used for performance improvement- Parameters:
itemAttributes- TheListof theItemAttributePojo- Returns:
- Number of inserted records
-
-