Class DataSetRepository

java.lang.Object
org.qubership.atp.dataset.db.AbstractRepository
org.qubership.atp.dataset.db.DataSetRepository

@Repository public class DataSetRepository extends AbstractRepository
  • Constructor Details

    • DataSetRepository

      @Autowired public DataSetRepository(@Nonnull com.querydsl.sql.SQLQueryFactory queryFactory, @Nonnull javax.inject.Provider<DataSetListRepository> dslRepo, @Nonnull javax.inject.Provider<ParameterRepository> paramRepo, @Nonnull javax.inject.Provider<LabelRepository> labelRepo, @Nonnull AttributePathRepository attrPathRepo, @Nonnull CacheRepository cacheRepo)
      data set repository.
      Parameters:
      queryFactory - is used for creating sql queries.
  • Method Details

    • create

      @Nonnull public DataSet create(@Nonnull UUID dslId, @Nonnull String name)
      Creates data set.
    • restore

      public boolean restore(@Nonnull UUID dslId, @Nonnull UUID dsId, @Nonnull String name, @Nullable UUID previousDataSet)
      Restores data set.
    • getById

      @Nullable public DataSet getById(@Nonnull UUID id)
    • existsById

      public boolean existsById(UUID id)
    • getByParentId

      @Nonnull public List<DataSet> getByParentId(@Nonnull UUID dslId)
    • getOccupiedNamesByParentId

      @Nonnull public List<String> getOccupiedNamesByParentId(@Nonnull UUID dslId)
    • getByParentIdAndLabel

      @Nonnull public List<DataSet> getByParentIdAndLabel(@Nonnull UUID dslId, @Nonnull String labelName)
    • getAll

      @Nonnull public List<DataSet> getAll()
    • getAll

      @Nonnull public List<DataSet> getAll(List<UUID> ids)
    • getNextvalOfSequenceDataset

      @Nonnull public com.querydsl.core.types.dsl.SimpleExpression<Long> getNextvalOfSequenceDataset()
    • select

      @Nonnull protected com.querydsl.sql.SQLQuery<DataSet> select(@Nonnull com.querydsl.core.types.Predicate predicate)
    • rename

      public boolean rename(@Nonnull UUID id, @Nonnull String name)
    • lock

      public boolean lock(@Nonnull List<UUID> ids, boolean isLock)
      DataSets ids lock.
    • delete

      public boolean delete(@Nonnull UUID id)
      Cascade delete of parameters, labels.
    • getAffectedDataSetsByChangesDataSetReference

      @Nonnull public List<DataSet> getAffectedDataSetsByChangesDataSetReference(@Nonnull UUID dataSetId)
      Finds dataSets with provided dataSet id.
    • getAffectedInfoByChangesDataSetReference

      @Nonnull public List<?> getAffectedInfoByChangesDataSetReference(@Nonnull UUID dataSetId)
      Finds all info with provided by affected dataSet id.
    • mark

      @Nonnull public Label mark(@Nonnull UUID dsId, @Nonnull String labelName)
    • unmark

      public boolean unmark(@Nonnull UUID dsId, @Nonnull UUID labelId)
    • getLabels

      @Nonnull public List<Label> getLabels(@Nonnull UUID dsId)