Interface DatasetRepositoryFragment

All Superinterfaces:
ScopedRepository<Dataset>
All Known Subinterfaces:
DatasetRepository
All Known Implementing Classes:
DatasetRepositoryFragmentImpl

public interface DatasetRepositoryFragment extends ScopedRepository<Dataset>
Entity-specific scoped finders for Dataset.
  • Method Details

    • findByName

      Optional<Dataset> findByName(String name, TenantScope scope)
      Finds a dataset by name within the scope.
    • findByNameForUpdate

      Optional<Dataset> findByNameForUpdate(String name, TenantScope scope)
      Finds a dataset by name within the scope under a pessimistic write lock, for version creation.
    • findAllOrdered

      List<Dataset> findAllOrdered(TenantScope scope)
      Lists datasets visible under the scope, newest first.
    • existsByName

      boolean existsByName(String name, TenantScope scope)
      Returns whether a dataset with the name exists within the scope. Names are unique per tenant, so the create guard checks within the caller's scope and is not a cross-tenant oracle.