java.lang.Object
io.helidon.dbclient.common.AbstractStatement<S,R>
io.helidon.dbclient.mongodb.MongoDbStatementDml
- All Implemented Interfaces:
DbStatement<DbStatementDml,,Single<Long>> DbStatementDml
DML statement for MongoDB.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringCollection JSON parameter name.protected static final StringOperation JSON parameter name.protected static final StringProjection JSON parameter name: Defines projection to restrict returned fields.protected static final StringQuery JSON parameter name.protected static final StringValue JSON parameter name.protected static final JsonReaderFactoryJSON reader factory. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdbType()Type of this database to use in interceptor context.doExecute(Single<DbClientServiceContext> dbContext, CompletableFuture<Void> statementFuture, CompletableFuture<Long> queryFuture) Execute the statement against the database.execute()Execute this statement using the parameters configured withparamsandaddParamsmethods.Statement name.protected DbStatementTypeType of this statement.Methods inherited from class io.helidon.dbclient.common.AbstractStatement
addParam, addParam, clientContext, dbMapperManager, indexedParam, indexedParams, mapperManager, me, namedParam, namedParams, params, params, paramType, statement, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.dbclient.DbStatement
addParam, addParam, indexedParam, namedParam, params, params, params
-
Field Details
-
JSON_OPERATION
Operation JSON parameter name.- See Also:
-
JSON_COLLECTION
Collection JSON parameter name.- See Also:
-
JSON_QUERY
Query JSON parameter name.- See Also:
-
JSON_VALUE
Value JSON parameter name.- See Also:
-
JSON_PROJECTION
Projection JSON parameter name: Defines projection to restrict returned fields.- See Also:
-
READER_FACTORY
JSON reader factory.
-
-
Method Details
-
execute
Description copied from interface:DbStatementExecute this statement using the parameters configured withparamsandaddParamsmethods.- Specified by:
executein interfaceDbStatement<DbStatementDml,Single<Long>> - Overrides:
executein classAbstractStatement<DbStatementDml,Single<Long>> - Returns:
- The result of this statement, never blocking.
-
doExecute
protected Single<Long> doExecute(Single<DbClientServiceContext> dbContext, CompletableFuture<Void> statementFuture, CompletableFuture<Long> queryFuture) Description copied from class:AbstractStatementExecute the statement against the database.- Specified by:
doExecutein classAbstractStatement<DbStatementDml,Single<Long>> - Parameters:
dbContext- future that completes after all services are invokedstatementFuture- future that should complete when the statement finishes executionqueryFuture- future that should complete when the result set is fully read (if one exists), otherwise complete same as statementFuture- Returns:
- result of this db statement.
-
statementType
Description copied from class:AbstractStatementType of this statement.- Overrides:
statementTypein classAbstractStatement<DbStatementDml,Single<Long>> - Returns:
- statement type
-
statementName
Statement name.- Overrides:
statementNamein classAbstractStatement<S extends DbStatement<S,R>, R> - Returns:
- name of this statement (never null, may be generated)
-
dbType
Description copied from class:AbstractStatementType of this database to use in interceptor context.- Specified by:
dbTypein classAbstractStatement<S extends DbStatement<S,R>, R> - Returns:
- type of this db
-