Class ListValueRepository

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

@Repository public class ListValueRepository extends AbstractRepository
  • Constructor Details

    • ListValueRepository

      @Autowired public ListValueRepository(@Nonnull com.querydsl.sql.SQLQueryFactory queryFactory, @Nonnull javax.inject.Provider<AttributeRepository> attrRepo, @Nonnull javax.inject.Provider<ParameterRepository> paramRepo, @Nonnull CacheRepository cacheRepo)
      AttributeRepository.
  • Method Details

    • create

      @Nonnull public List<ListValue> create(@Nonnull UUID attributeId, @Nonnull List<String> values)
      Creates a list value objects for specified string values.
    • create

      @Nonnull public ListValue create(@Nonnull UUID attributeId, @Nonnull String text)
      Creates a list value object for specified string values.
    • update

      public boolean update(@Nonnull UUID id, @Nonnull String text)
    • update

      protected long update(@Nonnull com.querydsl.core.types.Predicate predicate, @Nonnull String text)
    • getById

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

      public boolean existsById(@Nonnull UUID id)
    • getAll

      @Nonnull public List<ListValue> getAll()
    • select

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

      public boolean delete(@Nonnull UUID id)
    • delete

      protected long delete(@Nonnull com.querydsl.core.types.Predicate predicate)
    • bulkDelete

      public boolean bulkDelete(@Nonnull List<UUID> ids)
      Bulk and cascade delete of list values.