Class MongoDbStatementGet
- All Implemented Interfaces:
DbStatement<DbStatementGet>, DbStatementGet
MongoDB
DbStatementGet 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 TypeMethodDescriptionAdd next parameter to the list of ordered parameters (e.g.Add next parameter to the map of named parameters (e.g.execute()Execute this statement using the parameters configured withparamsandaddParamsmethods.indexedParam(Object parameters) Configure parameters usingObjectinstance with registered mapper.namedParam(Object parameters) Configure parameters usingObjectinstance with registered mapper.Configure parameters from aListby order.Configure named parameters.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, autoClose, context, context, doExecute, identity, parametersModifier 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 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 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 DbStatementGetidentity()Get this instance as the correct type.Get the statement parameters.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DbStatement
paramsModifier and TypeMethodDescriptiondefault DbStatementGetConfigure 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<DbStatementGet>- Returns:
- statement type
-
params
Description copied from interface:DbStatementConfigure parameters from aListby order. The statement must use indexed parameters and configure them by order in the provided array.- Specified by:
paramsin interfaceDbStatement<DbStatementGet>- Overrides:
paramsin classDbStatementBase<DbStatementGet>- Parameters:
parameters- ordered parameters to set on this statement, never null- Returns:
- updated db statement
-
params
Description copied from interface:DbStatementConfigure named parameters. The statement must use named parameters and configure them from the provided map.- Specified by:
paramsin interfaceDbStatement<DbStatementGet>- Overrides:
paramsin classDbStatementBase<DbStatementGet>- Parameters:
parameters- named parameters to set on this statement- Returns:
- updated db statement
-
namedParam
Description copied from interface:DbStatementConfigure parameters usingObjectinstance with registered mapper. The statement must use named parameters and configure them from the map provided by mapper.- Specified by:
namedParamin interfaceDbStatement<DbStatementGet>- Overrides:
namedParamin classDbStatementBase<DbStatementGet>- Parameters:
parameters-Objectinstance containing parameters- Returns:
- updated db statement
-
indexedParam
Description copied from interface:DbStatementConfigure parameters usingObjectinstance with registered mapper. The statement must use indexed parameters and configure them by order in the array provided by mapper.- Specified by:
indexedParamin interfaceDbStatement<DbStatementGet>- Overrides:
indexedParamin classDbStatementBase<DbStatementGet>- Parameters:
parameters-Objectinstance containing parameters- Returns:
- updated db statement
-
addParam
Description copied from interface:DbStatementAdd next parameter to the list of ordered parameters (e.g. the ones that use?in SQL).- Specified by:
addParamin interfaceDbStatement<DbStatementGet>- Overrides:
addParamin classDbStatementBase<DbStatementGet>- Parameters:
parameter- next parameter to set on this statement- Returns:
- updated db statement
-
addParam
Description copied from interface:DbStatementAdd next parameter to the map of named parameters (e.g. the ones that use:namein Helidon JDBC SQL integration).- Specified by:
addParamin interfaceDbStatement<DbStatementGet>- Overrides:
addParamin classDbStatementBase<DbStatementGet>- Parameters:
name- name of parameterparameter- value of parameter- Returns:
- updated db statement
-
execute
Description copied from interface:DbStatementGetExecute this statement using the parameters configured withparamsandaddParamsmethods.- Specified by:
executein interfaceDbStatementGet- Returns:
- The result of this statement.
-