Interface ScraperOwnedSpecificationRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ScraperOwnedSpecificationEntity,
,ScraperOwnedSpecificationReference> org.springframework.data.repository.Repository<ScraperOwnedSpecificationEntity,
ScraperOwnedSpecificationReference>
@Repository
public interface ScraperOwnedSpecificationRepository
extends org.springframework.data.repository.CrudRepository<ScraperOwnedSpecificationEntity,ScraperOwnedSpecificationReference>
Repository for accessing and managing scraper specification entities owned by
users.
Extends CrudRepository
to provide CRUD operations and custom queries
for ScraperOwnedSpecificationEntity
.
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByReferenceAndStatus
(ScraperOwnedSpecificationReference reference, ScraperOwnedSpecificationStatus status) Finds all scraper specifications by their reference and status.findAllByReferenceInAndStatus
(Collection<ScraperOwnedSpecificationReference> references, ScraperOwnedSpecificationStatus status) Finds all scraper specifications by their reference and status.findAllByReferenceOwner
(String referenceOwner) Finds all scraper specifications by their reference owner.findAllByReferenceOwnerAndStatusNot
(String referenceOwner, ScraperOwnedSpecificationStatus status) Finds all scraper specifications by their reference owner and status.Finds all scraper specifications by their status.findByReferenceAndStatusNot
(ScraperOwnedSpecificationReference reference, ScraperOwnedSpecificationStatus status) Finds a scraper specification by its reference and status.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
-
Method Details
-
findAllByReferenceAndStatus
List<ScraperOwnedSpecificationEntity> findAllByReferenceAndStatus(ScraperOwnedSpecificationReference reference, ScraperOwnedSpecificationStatus status) Finds all scraper specifications by their reference and status.- Parameters:
reference
- The reference of the specificationstatus
- The status of the specification- Returns:
- A list of scraper specifications matching the reference and status
-
findAllByReferenceOwnerAndStatusNot
List<ScraperOwnedSpecificationEntity> findAllByReferenceOwnerAndStatusNot(String referenceOwner, ScraperOwnedSpecificationStatus status) Finds all scraper specifications by their reference owner and status.- Parameters:
referenceOwner
- The owner of the specificationstatus
- The status of the specification- Returns:
- A list of scraper specifications matching the reference owner and status
-
findAllByReferenceOwner
Finds all scraper specifications by their reference owner.- Parameters:
referenceOwner
- The owner of the specification- Returns:
- A list of scraper specifications matching the reference owner
-
findAllByStatusNot
Finds all scraper specifications by their status.- Parameters:
status
- The status of the specification- Returns:
- A list of scraper specifications matching the status
-
findAllByReferenceInAndStatus
List<ScraperOwnedSpecificationEntity> findAllByReferenceInAndStatus(Collection<ScraperOwnedSpecificationReference> references, ScraperOwnedSpecificationStatus status) Finds all scraper specifications by their reference and status.- Parameters:
references
- The references of the specifications to filter bystatus
- The status of the specifications to filter by- Returns:
- A list of scraper specifications matching the reference and status
-
findByReferenceAndStatusNot
Optional<ScraperOwnedSpecificationEntity> findByReferenceAndStatusNot(ScraperOwnedSpecificationReference reference, ScraperOwnedSpecificationStatus status) Finds a scraper specification by its reference and status.- Parameters:
reference
- The reference of the specificationstatus
- The status of the specification- Returns:
- An optional scraper specification matching the reference and status
-