Class CADBQLocationList
java.lang.Object
com.io7m.cardant.database.postgres.internal.CADBQLocationList
- All Implemented Interfaces:
CADatabaseQueriesLocationsType,CADatabaseQueriesLocationsType.ListType,CADatabaseQueriesType,CADatabaseQueryType<CADatabaseUnit,SortedMap<CALocationID, CALocationSummary>>
public final class CADBQLocationList
extends Object
implements CADatabaseQueriesLocationsType.ListType
List locations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.io7m.cardant.database.api.CADatabaseQueriesLocationsType
CADatabaseQueriesLocationsType.AttachmentAddType, CADatabaseQueriesLocationsType.AttachmentRemoveType, CADatabaseQueriesLocationsType.GetType, CADatabaseQueriesLocationsType.ListType, CADatabaseQueriesLocationsType.MetadataPutType, CADatabaseQueriesLocationsType.MetadataRemoveType, CADatabaseQueriesLocationsType.PutType, CADatabaseQueriesLocationsType.TypesAssignType, CADatabaseQueriesLocationsType.TypesRevokeType -
Field Summary
Fields inherited from interface com.io7m.cardant.database.api.CADatabaseQueriesType
EARLIEST -
Constructor Summary
ConstructorsConstructorDescriptionCADBQLocationList(com.io7m.cardant.database.postgres.internal.CADatabaseTransaction transaction) Construct a query. -
Method Summary
Modifier and TypeMethodDescriptionexecute(CADatabaseUnit parameters) Execute the query.protected final Stringlocal(CAStringConstantType constant) protected SortedMap<CALocationID, CALocationSummary> onExecute(org.jooq.DSLContext context, CADatabaseUnit 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
-
CADBQLocationList
public CADBQLocationList(com.io7m.cardant.database.postgres.internal.CADatabaseTransaction transaction) Construct a query.- Parameters:
transaction- The transaction
-
-
Method Details
-
provider
- Returns:
- A query provider
-
onExecute
protected SortedMap<CALocationID,CALocationSummary> onExecute(org.jooq.DSLContext context, CADatabaseUnit parameters) -
transactionSpan
protected final io.opentelemetry.api.trace.Span transactionSpan() -
transaction
protected final com.io7m.cardant.database.postgres.internal.CADatabaseTransaction transaction() -
local
-
setAttribute
-
execute
public final SortedMap<CALocationID,CALocationSummary> execute(CADatabaseUnit 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
-