Package org.qubership.atp.dataset.db
Class FilterRepository
java.lang.Object
org.qubership.atp.dataset.db.AbstractRepository
org.qubership.atp.dataset.db.FilterRepository
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates filter with binding to DSL.voidMethod will delete filter by Id, and removes references fro Filter_DS/DSL_labels.booleanexistsById(UUID id) Retrieve the filter from repository by filterId.Retrieve all filters under visibility area.voidonVaDeleteCascade(UUID vaId) Cascade delete for dsl.voidUpdate filter.
-
Constructor Details
-
FilterRepository
@Autowired public FilterRepository(com.querydsl.sql.SQLQueryFactory queryFactory)
-
-
Method Details
-
create
Creates filter with binding to DSL. And contains DSL Labels and DS Labels id.- Parameters:
name- filter namevaId- target visibility area, which contains this filterdsLabels- - dataset labels which included in filterdslLabels- - dataset list labels which included in filter- Returns:
- instance of
FilterImpl.
-
onVaDeleteCascade
Cascade delete for dsl. Method will drop references to labels and all filters which bound to target dsl.- Parameters:
vaId- ofDataSetList
-
delete
Method will delete filter by Id, and removes references fro Filter_DS/DSL_labels.- Parameters:
filterId- of targetFilter
-
get
Retrieve the filter from repository by filterId. -
existsById
-
update
Update filter. Method will create new references to label and delete old references.- Parameters:
filterId- - target filter idUUIDname- - filter namedsLabels- - references toDataSetlabelsdslLabels- - references toDataSetListlabels
-
getAll
Retrieve all filters under visibility area.- Parameters:
vaId- visibility area id- Returns:
- collection of filters under
-