Package dev.dokimos.server.repository
Interface DatasetRepositoryFragment
- All Superinterfaces:
ScopedRepository<Dataset>
- All Known Subinterfaces:
DatasetRepository
- All Known Implementing Classes:
DatasetRepositoryFragmentImpl
Entity-specific scoped finders for
Dataset.-
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsByName(String name, TenantScope scope) Returns whether a dataset with the name exists within the scope.findAllOrdered(TenantScope scope) Lists datasets visible under the scope, newest first.findByName(String name, TenantScope scope) Finds a dataset by name within the scope.findByNameForUpdate(String name, TenantScope scope) Finds a dataset by name within the scope under a pessimistic write lock, for version creation.
-
Method Details
-
findByName
Finds a dataset by name within the scope. -
findByNameForUpdate
Finds a dataset by name within the scope under a pessimistic write lock, for version creation. -
findAllOrdered
Lists datasets visible under the scope, newest first. -
existsByName
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.
-