Package dev.dokimos.server.repository
Class DatasetRepositoryFragmentImpl
java.lang.Object
dev.dokimos.server.tenant.AbstractScopedRepository<Dataset>
dev.dokimos.server.repository.DatasetRepositoryFragmentImpl
- All Implemented Interfaces:
DatasetRepositoryFragment,ScopedRepository<Dataset>
public class DatasetRepositoryFragmentImpl
extends AbstractScopedRepository<Dataset>
implements DatasetRepositoryFragment
Tenant-scoped implementation of the
Dataset finders.-
Constructor Summary
Constructors -
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.Methods inherited from class dev.dokimos.server.tenant.AbstractScopedRepository
count, delete, findAll, findById, save, saveAll
-
Constructor Details
-
DatasetRepositoryFragmentImpl
public DatasetRepositoryFragmentImpl()
-
-
Method Details
-
findByName
Description copied from interface:DatasetRepositoryFragmentFinds a dataset by name within the scope.- Specified by:
findByNamein interfaceDatasetRepositoryFragment
-
findByNameForUpdate
Description copied from interface:DatasetRepositoryFragmentFinds a dataset by name within the scope under a pessimistic write lock, for version creation.- Specified by:
findByNameForUpdatein interfaceDatasetRepositoryFragment
-
findAllOrdered
Description copied from interface:DatasetRepositoryFragmentLists datasets visible under the scope, newest first.- Specified by:
findAllOrderedin interfaceDatasetRepositoryFragment
-
existsByName
Description copied from interface:DatasetRepositoryFragmentReturns 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.- Specified by:
existsByNamein interfaceDatasetRepositoryFragment
-