Class CADBQStockGet
java.lang.Object
com.io7m.cardant.database.postgres.internal.CADBQStockGet
- All Implemented Interfaces:
CADatabaseQueriesStockType, CADatabaseQueriesStockType.StockGetType, CADatabaseQueriesType, CADatabaseQueryType<CAStockInstanceID, Optional<CAStockOccurrenceType>>
Get stock.
-
Nested Class Summary
Nested classes/interfaces inherited from interface CADatabaseQueriesStockType
CADatabaseQueriesStockType.StockCountType, CADatabaseQueriesStockType.StockGetType, CADatabaseQueriesStockType.StockRepositType, CADatabaseQueriesStockType.StockSearchType -
Field Summary
Fields inherited from interface CADatabaseQueriesType
EARLIEST -
Constructor Summary
ConstructorsConstructorDescriptionCADBQStockGet(com.io7m.cardant.database.postgres.internal.CADatabaseTransaction transaction) Construct a query. -
Method Summary
Modifier and TypeMethodDescriptionfinal Optional<CAStockOccurrenceType> execute(CAStockInstanceID parameters) Execute the query.protected CADatabaseLanguagelanguage()protected final Stringlocal(CAStringConstantType constant) protected final CAStringsmessages()protected final OffsetDateTimenow()protected Optional<CAStockOccurrenceType> onExecute(org.jooq.DSLContext context, CAStockInstanceID 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CADatabaseQueryType
execute
-
Constructor Details
-
CADBQStockGet
public CADBQStockGet(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<CAStockOccurrenceType> onExecute(org.jooq.DSLContext context, CAStockInstanceID parameters) throws CADatabaseException - Throws:
CADatabaseException
-
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<CAStockOccurrenceType> execute(CAStockInstanceID 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
-