Class CADBQTypePackageGetText
java.lang.Object
com.io7m.cardant.database.postgres.internal.CADBQTypePackageGetText
- All Implemented Interfaces:
CADatabaseQueriesType,CADatabaseQueriesTypePackagesType,CADatabaseQueriesTypePackagesType.TypePackageGetTextType,CADatabaseQueryType<CATypePackageIdentifier,Optional<String>>
public final class CADBQTypePackageGetText
extends Object
implements CADatabaseQueriesTypePackagesType.TypePackageGetTextType
Get the text of a type package.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.io7m.cardant.database.api.CADatabaseQueriesTypePackagesType
CADatabaseQueriesTypePackagesType.TypePackageGetTextType, CADatabaseQueriesTypePackagesType.TypePackageInstallType, CADatabaseQueriesTypePackagesType.TypePackageSatisfyingType, CADatabaseQueriesTypePackagesType.TypePackageSearchType, CADatabaseQueriesTypePackagesType.TypePackageUninstallType -
Field Summary
Fields inherited from interface com.io7m.cardant.database.api.CADatabaseQueriesType
EARLIEST -
Constructor Summary
ConstructorsConstructorDescriptionCADBQTypePackageGetText(com.io7m.cardant.database.postgres.internal.CADatabaseTransaction transaction) Construct a query. -
Method Summary
Modifier and TypeMethodDescriptionexecute(CATypePackageIdentifier parameters) Execute the query.protected CADatabaseLanguagelanguage()protected final Stringlocal(CAStringConstantType constant) protected final CAStringsmessages()protected final OffsetDateTimenow()onExecute(org.jooq.DSLContext context, CATypePackageIdentifier parameters) static CADBQueryProviderTypeprovider()protected final voidsetAttribute(CAStringConstantType name, String value) protected final com.io7m.cardant.database.postgres.internal.CADatabaseTransactionprotected final io.opentelemetry.api.trace.SpanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.io7m.cardant.database.api.CADatabaseQueryType
execute
-
Constructor Details
-
CADBQTypePackageGetText
public CADBQTypePackageGetText(com.io7m.cardant.database.postgres.internal.CADatabaseTransaction transaction) Construct a query.- Parameters:
transaction- The transaction
-
-
Method Details
-
provider
- Returns:
- A query provider
-
onExecute
protected Optional<String> onExecute(org.jooq.DSLContext context, CATypePackageIdentifier parameters) -
transactionSpan
protected final io.opentelemetry.api.trace.Span transactionSpan() -
transaction
protected final com.io7m.cardant.database.postgres.internal.CADatabaseTransaction transaction() -
messages
-
local
-
setAttribute
-
execute
public final Optional<String> execute(CATypePackageIdentifier parameters) throws CADatabaseException Description copied from interface:CADatabaseQueryTypeExecute the query.- Specified by:
executein interfaceCADatabaseQueryType<P,R> - Parameters:
parameters- The parameters- Returns:
- The results
- Throws:
CADatabaseException- On errors
-
attributes
-
language
-
now
-