public interface PackageMetadataRepositoryCustom
Modifier and Type | Method and Description |
---|---|
org.springframework.cloud.skipper.domain.PackageMetadata |
findByNameAndOptionalVersionRequired(String packageName,
String packageVersion)
Find the
PackageMetadata given the package name and version. |
org.springframework.cloud.skipper.domain.PackageMetadata |
findByNameAndVersionByMaxRepoOrder(String name,
String version)
Find the
PackageMetadata with the given name, version and also from the
repository that has the highest order set. |
List<org.springframework.cloud.skipper.domain.PackageMetadata> |
findByNameRequired(String name)
Find the list of
PackageMetadata by the given package name. |
org.springframework.cloud.skipper.domain.PackageMetadata findByNameAndVersionByMaxRepoOrder(@Param(value="name") String name, @Param(value="version") String version)
PackageMetadata
with the given name, version and also from the
repository that has the highest order set.name
- the name of the package metadataversion
- the version of the package metadataList<org.springframework.cloud.skipper.domain.PackageMetadata> findByNameRequired(@Param(value="name") String name) throws org.springframework.cloud.skipper.SkipperException
PackageMetadata
by the given package name.name
- the package name{@link
- org.springframework.cloud.skipper.SkipperException} if there is no
package exists with the given name.org.springframework.cloud.skipper.SkipperException
org.springframework.cloud.skipper.domain.PackageMetadata findByNameAndOptionalVersionRequired(String packageName, String packageVersion)
PackageMetadata
given the package name and version. If packageVersion
is specified, delegate to findByNameAndVersionByMaxRepoOrder, otherwise delegate to
findFirstByNameOrderByVersionDesc. Throw an epackageName
- the name of the packagepackageVersion
- the version, maybe empty.{@link
- org.springframework.cloud.skipper.SkipperException} if there is no
package exists with the given name.Copyright © 2020 Pivotal Software, Inc.. All rights reserved.