Class CADBQItemGet
java.lang.Object
com.io7m.cardant.database.postgres.internal.CADBQItemGet
- All Implemented Interfaces:
CADatabaseQueriesItemsType, CADatabaseQueriesItemsType.ItemGetType, CADatabaseQueriesType, CADatabaseQueryType<CAItemID, Optional<CAItem>>
Retrieve the item with the given ID, if one exists.
-
Nested Class Summary
Nested classes/interfaces inherited from interface CADatabaseQueriesItemsType
CADatabaseQueriesItemsType.ItemAttachmentAddType, CADatabaseQueriesItemsType.ItemAttachmentRemoveType, CADatabaseQueriesItemsType.ItemCreateType, CADatabaseQueriesItemsType.ItemDeleteMarkOnlyType, CADatabaseQueriesItemsType.ItemDeleteType, CADatabaseQueriesItemsType.ItemGetType, CADatabaseQueriesItemsType.ItemMetadataPutType, CADatabaseQueriesItemsType.ItemMetadataRemoveType, CADatabaseQueriesItemsType.ItemSearchType, CADatabaseQueriesItemsType.ItemSetNameType, CADatabaseQueriesItemsType.ItemTypesAssignType, CADatabaseQueriesItemsType.ItemTypesRevokeType -
Field Summary
Fields inherited from interface CADatabaseQueriesType
EARLIEST -
Constructor Summary
ConstructorsConstructorDescriptionCADBQItemGet(com.io7m.cardant.database.postgres.internal.CADatabaseTransaction transaction) Construct a query. -
Method Summary
Modifier and TypeMethodDescriptionExecute the query.protected CADatabaseLanguagelanguage()protected final Stringlocal(CAStringConstantType constant) protected final CAStringsmessages()protected final OffsetDateTimenow()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
-
CADBQItemGet
public CADBQItemGet(com.io7m.cardant.database.postgres.internal.CADatabaseTransaction transaction) Construct a query.- Parameters:
transaction- The transaction
-
-
Method Details
-
provider
- Returns:
- A query provider
-
onExecute
-
transactionSpan
protected final io.opentelemetry.api.trace.Span transactionSpan() -
transaction
protected final com.io7m.cardant.database.postgres.internal.CADatabaseTransaction transaction() -
messages
-
local
-
setAttribute
-
execute
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
-