- 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 io.helidon.dbclient.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, parameters
-
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:
-
-
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.
-