@Transactional public interface ReleaseRepository extends org.springframework.data.keyvalue.repository.KeyValueRepository<org.springframework.cloud.skipper.domain.Release,Long>, ReleaseRepositoryCustom
Modifier and Type | Method and Description |
---|---|
void |
delete(org.springframework.cloud.skipper.domain.Release release) |
void |
deleteAll() |
void |
deleteById(Long id) |
List<org.springframework.cloud.skipper.domain.Release> |
findByNameAndVersionBetweenOrderByNameAscVersionDesc(String name,
int fromVersion,
int toVersion) |
List<org.springframework.cloud.skipper.domain.Release> |
findByNameIgnoreCaseContaining(String name) |
List<org.springframework.cloud.skipper.domain.Release> |
findByNameIgnoreCaseContainingOrderByNameAscVersionDesc(String name) |
List<org.springframework.cloud.skipper.domain.Release> |
findByNameOrderByVersionDesc(String name) |
List<org.springframework.cloud.skipper.domain.Release> |
findByRepositoryIdAndPackageMetadataIdOrderByNameAscVersionDesc(Long repositoryId,
Long packageMetadataId)
Return all releases that are associated with the provided package and repository id in decending
version order.
|
org.springframework.cloud.skipper.domain.Release |
findTopByNameOrderByVersionDesc(String name) |
org.springframework.cloud.skipper.domain.Release |
save(org.springframework.cloud.skipper.domain.Release release) |
findAll, findAll
count, deleteAll, existsById, findAll, findAllById, findById, saveAll
findByNameAndVersion, findLatestDeployedOrFailed, findLatestDeployedOrFailed, findLatestDeployedRelease, findLatestRelease, findLatestReleaseForUpdate, findLatestReleaseIfDeleted, findReleaseRevisions, findReleaseToRollback
org.springframework.cloud.skipper.domain.Release save(org.springframework.cloud.skipper.domain.Release release)
save
in interface org.springframework.data.repository.CrudRepository<org.springframework.cloud.skipper.domain.Release,Long>
void deleteById(Long id)
deleteById
in interface org.springframework.data.repository.CrudRepository<org.springframework.cloud.skipper.domain.Release,Long>
void delete(org.springframework.cloud.skipper.domain.Release release)
delete
in interface org.springframework.data.repository.CrudRepository<org.springframework.cloud.skipper.domain.Release,Long>
void deleteAll()
deleteAll
in interface org.springframework.data.repository.CrudRepository<org.springframework.cloud.skipper.domain.Release,Long>
@Transactional(readOnly=true) List<org.springframework.cloud.skipper.domain.Release> findByNameOrderByVersionDesc(@Param(value="name") String name)
@Transactional(readOnly=true) List<org.springframework.cloud.skipper.domain.Release> findByNameIgnoreCaseContainingOrderByNameAscVersionDesc(@Param(value="name") String name)
@Transactional(readOnly=true) List<org.springframework.cloud.skipper.domain.Release> findByNameAndVersionBetweenOrderByNameAscVersionDesc(@Param(value="name") String name, @Param(value="from") int fromVersion, @Param(value="to") int toVersion)
@Transactional(readOnly=true) org.springframework.cloud.skipper.domain.Release findTopByNameOrderByVersionDesc(@Param(value="name") String name)
@Transactional(readOnly=true) List<org.springframework.cloud.skipper.domain.Release> findByNameIgnoreCaseContaining(@Param(value="name") String name)
@Transactional(readOnly=true) List<org.springframework.cloud.skipper.domain.Release> findByRepositoryIdAndPackageMetadataIdOrderByNameAscVersionDesc(Long repositoryId, Long packageMetadataId)
repositoryId
- the Id of the repository where the package is locatedpackageMetadataId
- the id of the package metadataCopyright © 2019 Pivotal Software, Inc.. All rights reserved.