Package org.qubership.atp.dataset.db
Class DataSetListTreeRepository
java.lang.Object
org.qubership.atp.dataset.db.AbstractRepository
org.qubership.atp.dataset.db.DataSetListTreeRepository
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classDoes not take any items from backing cache. -
Field Summary
Fields inherited from class org.qubership.atp.dataset.db.AbstractRepository
AK, ATTR, DS, DSL, DSLABEL, DSLLABEL, FILTER_DS_LABELS, FILTER_DSL_LABELS, FILTERS, LABEL, LV, PARAM, TEST_PLAN, VA -
Constructor Summary
ConstructorsConstructorDescriptionDataSetListTreeRepository(com.querydsl.sql.SQLQueryFactory queryFactory, javax.inject.Provider<VisibilityAreaRepository> vaRepo, javax.inject.Provider<TestPlanRepository> testPlanRepo, javax.inject.Provider<DataSetListRepository> dslRepo, javax.inject.Provider<DataSetRepository> dsRepo, javax.inject.Provider<AttributeRepository> attrRepo, javax.inject.Provider<ParameterRepository> paramRepo, javax.inject.Provider<GridFsRepository> gridFsRepoProvider, javax.inject.Provider<LabelRepository> labelRepo, javax.inject.Provider<ListValueRepository> lvRepo, CacheRepository cacheRepo, com.querydsl.sql.Configuration configuration) data set list tree repository. -
Method Summary
Modifier and TypeMethodDescriptionprotected DataSetListgetDslTree(UUID id, Collection<UUID> dataSetsFilter, Collection<UUID> attributesFilter, DataSetListTreeRepository.ToLoadLater loadLater, Integer startIndex, Integer endIndex, boolean isSortEnabled) protected DataSetListgetDslTree(UUID id, Collection<UUID> dataSetsFilter, DataSetListTreeRepository.ToLoadLater loadLater) protected DataSetListgetDslTree(UUID id, DataSetListTreeRepository.ToLoadLater loadLater) getEagerById(UUID id, Collection<UUID> dataSetsFilter, Collection<UUID> attributesFilter, Integer startIndex, Integer endIndex, boolean isSortEnabled) Loads eager data set list with all it's references.
-
Constructor Details
-
DataSetListTreeRepository
@Autowired public DataSetListTreeRepository(@Nonnull com.querydsl.sql.SQLQueryFactory queryFactory, @Nonnull javax.inject.Provider<VisibilityAreaRepository> vaRepo, @Nonnull javax.inject.Provider<TestPlanRepository> testPlanRepo, @Nonnull javax.inject.Provider<DataSetListRepository> dslRepo, @Nonnull javax.inject.Provider<DataSetRepository> dsRepo, @Nonnull javax.inject.Provider<AttributeRepository> attrRepo, @Nonnull javax.inject.Provider<ParameterRepository> paramRepo, @Nonnull javax.inject.Provider<GridFsRepository> gridFsRepoProvider, @Nonnull javax.inject.Provider<LabelRepository> labelRepo, @Nonnull javax.inject.Provider<ListValueRepository> lvRepo, @Nonnull CacheRepository cacheRepo, @Nonnull com.querydsl.sql.Configuration configuration) data set list tree repository.- Parameters:
queryFactory- is used for creating sql queries.
-
-
Method Details
-
getEagerById
@Nullable public DataSetList getEagerById(@Nonnull UUID id, @Nullable Collection<UUID> dataSetsFilter, @Nullable Collection<UUID> attributesFilter, Integer startIndex, Integer endIndex, boolean isSortEnabled) Loads eager data set list with all it's references. Used to cache all of the data for performance reasons. Requires cache to be enabled.- Parameters:
id- data set list id.dataSetsFilter- data set ids you want to load. Will load all if collection is empty.attributesFilter- attributes you don't want to load. Will load all if collection is empty.
-
getDslTree
protected DataSetList getDslTree(@Nonnull UUID id, @Nonnull DataSetListTreeRepository.ToLoadLater loadLater) -
getDslTree
protected DataSetList getDslTree(@Nonnull UUID id, @Nullable Collection<UUID> dataSetsFilter, @Nonnull DataSetListTreeRepository.ToLoadLater loadLater) -
getDslTree
@Nullable protected DataSetList getDslTree(@Nonnull UUID id, @Nullable Collection<UUID> dataSetsFilter, @Nullable Collection<UUID> attributesFilter, @Nonnull DataSetListTreeRepository.ToLoadLater loadLater, Integer startIndex, Integer endIndex, boolean isSortEnabled)
-