public interface PackageMetadataRepositoryCustom
Modifier and Type | Method and Description |
---|---|
PackageMetadata |
findByNameAndOptionalVersionRequired(String packageName,
String packageVersion)
Find the
PackageMetadata given the package name and version. |
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<PackageMetadata> |
findByNameRequired(String name)
Find the list of
PackageMetadata by the given package name. |
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<PackageMetadata> findByNameRequired(@Param(value="name") String name) throws 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.SkipperException
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 © 2019 Pivotal Software, Inc.. All rights reserved.