Class MongoDbStatementQuery
java.lang.Object
io.helidon.dbclient.DbStatementBase<DbStatementQuery>
io.helidon.dbclient.mongodb.MongoDbStatementQuery
- All Implemented Interfaces:
DbStatement<DbStatementQuery>, DbStatementQuery
public class MongoDbStatementQuery
extends DbStatementBase<DbStatementQuery>
implements DbStatementQuery
MongoDB
DbStatementQuery implementation.-
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. -
Method Summary
Modifier and TypeMethodDescriptionexecute()Execute this statement using the parameters configured withparamsandaddParamsmethods.Get the statement type.Methods inherited from class DbStatementBase
addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, autoClose, context, context, doExecute, identity, indexedParam, namedParam, parameters, params, paramsModifier and TypeMethodDescriptionaddParam(boolean parameter) Add next boolean parameter to the list of ordered parameters (e.g.addParam(byte parameter) Add next byte parameter to the list of ordered parameters (e.g.addParam(byte[] parameter) Add next byte[] parameter to the list of ordered parameters (e.g.addParam(double parameter) Add next double parameter to the list of ordered parameters (e.g.addParam(float parameter) Add next float parameter to the list of ordered parameters (e.g.addParam(int parameter) Add next integer parameter to the list of ordered parameters (e.g.addParam(long parameter) Add next long parameter to the list of ordered parameters (e.g.addParam(short parameter) Add next short parameter to the list of ordered parameters (e.g.Add next parameter to the list of ordered parameters (e.g.Add nextStringparameter to the list of ordered parameters (e.g.Add next boolean parameter to the map of named parameters (e.g.Add next byte parameter to the map of named parameters (e.g.Add next byte[] parameter to the map of named parameters (e.g.Add next double parameter to the map of named parameters (e.g.Add next float parameter to the map of named parameters (e.g.Add next int parameter to the map of named parameters (e.g.Add next long parameter to the map of named parameters (e.g.Add next short parameter to the map of named parameters (e.g.Add next parameter to the map of named parameters (e.g.Add nextStringparameter to the map of named parameters (e.g.addParam(String name, BigDecimal parameter) Add nextBigDecimalparameter to the map of named parameters (e.g.addParam(String name, BigInteger parameter) Add nextBigIntegerparameter to the map of named parameters (e.g.addParam(BigDecimal parameter) Add nextBigDecimalparameter to the list of ordered parameters (e.g.addParam(BigInteger parameter) Add nextBigIntegerparameter to the list of ordered parameters (e.g.protected static <T> Stream<T> Decorate the given stream to invokeBaseStream.close()on terminal operations.context()Get the execution context.protected <C extends DbExecuteContext>
CReturns execution context cast to it's extending class.protected <T> TdoExecute(BiFunction<CompletableFuture<Long>, DbClientServiceContext, T> function) Execute the statement with interception.protected DbStatementQueryidentity()Get this instance as the correct type.indexedParam(Object parameters) Configure parameters usingObjectinstance with registered mapper.namedParam(Object parameters) Configure parameters usingObjectinstance with registered mapper.Get the statement parameters.Configure parameters from aListby order.Configure named parameters.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DbStatement
paramsModifier and TypeMethodDescriptiondefault DbStatementQueryConfigure parameters from an array by order.
-
Field Details
-
JSON_OPERATION
-
JSON_COLLECTION
-
JSON_QUERY
-
JSON_VALUE
-
JSON_PROJECTION
Projection JSON parameter name: Defines projection to restrict returned fields.- See Also:
-
-
Method Details
-
statementType
Description copied from class:DbStatementBaseGet the statement type.- Specified by:
statementTypein classDbStatementBase<DbStatementQuery>- Returns:
- statement type
-
execute
Description copied from interface:DbStatementQueryExecute this statement using the parameters configured withparamsandaddParamsmethods.- Specified by:
executein interfaceDbStatementQuery- Returns:
- The result of this statement
-