- java.lang.Object
-
- io.helidon.dbclient.common.AbstractStatement<S,R>
-
- io.helidon.dbclient.mongodb.MongoDbStatementDml
-
- All Implemented Interfaces:
DbStatement<DbStatementDml,io.helidon.common.reactive.Single<Long>>,DbStatementDml
public class MongoDbStatementDml extends AbstractStatement<S,R> implements DbStatementDml
DML statement for MongoDB.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringJSON_COLLECTIONCollection JSON parameter name.protected static StringJSON_OPERATIONOperation JSON parameter name.protected static StringJSON_PROJECTIONProjection JSON parameter name: Defines projection to restrict returned fields.protected static StringJSON_QUERYQuery JSON parameter name.protected static StringJSON_VALUEValue JSON parameter name.protected static JsonReaderFactoryREADER_FACTORYJSON reader factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringdbType()protected io.helidon.common.reactive.Single<Long>doExecute(io.helidon.common.reactive.Single<DbClientServiceContext> dbContext, CompletableFuture<Void> statementFuture, CompletableFuture<Long> queryFuture)io.helidon.common.reactive.Single<Long>execute()StringstatementName()Statement name.protected DbStatementTypestatementType()-
Methods inherited from class io.helidon.dbclient.common.AbstractStatement
addParam, addParam, clientContext, dbMapperManager, indexedParam, indexedParams, mapperManager, me, namedParam, namedParams, params, params, paramType, statement, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.helidon.dbclient.DbStatement
addParam, addParam, indexedParam, namedParam, params, params, params
-
-
-
-
Field Detail
-
JSON_OPERATION
protected static final String JSON_OPERATION
Operation JSON parameter name.- See Also:
- Constant Field Values
-
JSON_COLLECTION
protected static final String JSON_COLLECTION
Collection JSON parameter name.- See Also:
- Constant Field Values
-
JSON_QUERY
protected static final String JSON_QUERY
Query JSON parameter name.- See Also:
- Constant Field Values
-
JSON_VALUE
protected static final String JSON_VALUE
Value JSON parameter name.- See Also:
- Constant Field Values
-
JSON_PROJECTION
protected static final String JSON_PROJECTION
Projection JSON parameter name: Defines projection to restrict returned fields.- See Also:
- Constant Field Values
-
READER_FACTORY
protected static final JsonReaderFactory READER_FACTORY
JSON reader factory.
-
-
Method Detail
-
execute
public io.helidon.common.reactive.Single<Long> execute()
- Specified by:
executein interfaceDbStatement<DbStatementDml,io.helidon.common.reactive.Single<Long>>- Overrides:
executein classAbstractStatement<DbStatementDml,io.helidon.common.reactive.Single<Long>>
-
doExecute
protected io.helidon.common.reactive.Single<Long> doExecute(io.helidon.common.reactive.Single<DbClientServiceContext> dbContext, CompletableFuture<Void> statementFuture, CompletableFuture<Long> queryFuture)
- Specified by:
doExecutein classAbstractStatement<DbStatementDml,io.helidon.common.reactive.Single<Long>>
-
statementType
protected DbStatementType statementType()
- Overrides:
statementTypein classAbstractStatement<DbStatementDml,io.helidon.common.reactive.Single<Long>>
-
statementName
public String statementName()
Statement name.- Overrides:
statementNamein classAbstractStatement<S extends DbStatement<S,R>,R>- Returns:
- name of this statement (never null, may be generated)
-
dbType
protected String dbType()
- Specified by:
dbTypein classAbstractStatement<S extends DbStatement<S,R>,R>
-
-