Class CADatabaseTypePackageResolver
java.lang.Object
com.io7m.cardant.database.api.CADatabaseTypePackageResolver
- All Implemented Interfaces:
CATypePackageResolverType
public final class CADatabaseTypePackageResolver
extends Object
implements CATypePackageResolverType
A database type package resolver.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CATypePackageResolverTypecreate(CATypePackageCompilerFactoryType inCompilers, CADatabaseTransactionType inTransaction) A database type package resolver.findTypePackage(CATypePackageIdentifier identifier) Find a package with the given identifier.findTypePackageId(com.io7m.lanark.core.RDottedName name, com.io7m.verona.core.VersionRange versionRange) Find a package with the given name that satisfies the given version range.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.io7m.cardant.type_packages.resolver.api.CATypePackageResolverType
findTypeRecord, findTypeScalar
-
Method Details
-
create
public static CATypePackageResolverType create(CATypePackageCompilerFactoryType inCompilers, CADatabaseTransactionType inTransaction) A database type package resolver.- Parameters:
inCompilers- The compilersinTransaction- The transaction- Returns:
- A resolver
-
findTypePackageId
public Optional<CATypePackageIdentifier> findTypePackageId(com.io7m.lanark.core.RDottedName name, com.io7m.verona.core.VersionRange versionRange) Description copied from interface:CATypePackageResolverTypeFind a package with the given name that satisfies the given version range.- Specified by:
findTypePackageIdin interfaceCATypePackageResolverType- Parameters:
name- The nameversionRange- The version range- Returns:
- The package identifier, if any
-
findTypePackage
Description copied from interface:CATypePackageResolverTypeFind a package with the given identifier.- Specified by:
findTypePackagein interfaceCATypePackageResolverType- Parameters:
identifier- The identifier- Returns:
- The package, if any
-
toString
-