- All Implemented Interfaces:
DbStatement<DbStatementGet>
,DbStatementGet
MongoDB
DbStatementGet
implementation.-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
Collection JSON parameter name.protected static final String
Operation JSON parameter name.protected static final String
Projection JSON parameter name: Defines projection to restrict returned fields.protected static final String
Query JSON parameter name.protected static final String
Value 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 withparams
andaddParams
methods.indexedParam
(Object parameters) Configure parameters usingObject
instance with registered mapper.namedParam
(Object parameters) Configure parameters usingObject
instance with registered mapper.Configure parameters from aList
by 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:DbStatementBase
Get the statement type.- Specified by:
statementType
in classDbStatementBase<DbStatementGet>
- Returns:
- statement type
-
params
Description copied from interface:DbStatement
Configure parameters from aList
by order. The statement must use indexed parameters and configure them by order in the provided array.- Specified by:
params
in interfaceDbStatement<DbStatementGet>
- Overrides:
params
in classDbStatementBase<DbStatementGet>
- Parameters:
parameters
- ordered parameters to set on this statement, never null- Returns:
- updated db statement
-
params
Description copied from interface:DbStatement
Configure named parameters. The statement must use named parameters and configure them from the provided map.- Specified by:
params
in interfaceDbStatement<DbStatementGet>
- Overrides:
params
in classDbStatementBase<DbStatementGet>
- Parameters:
parameters
- named parameters to set on this statement- Returns:
- updated db statement
-
namedParam
Description copied from interface:DbStatement
Configure parameters usingObject
instance with registered mapper. The statement must use named parameters and configure them from the map provided by mapper.- Specified by:
namedParam
in interfaceDbStatement<DbStatementGet>
- Overrides:
namedParam
in classDbStatementBase<DbStatementGet>
- Parameters:
parameters
-Object
instance containing parameters- Returns:
- updated db statement
-
indexedParam
Description copied from interface:DbStatement
Configure parameters usingObject
instance with registered mapper. The statement must use indexed parameters and configure them by order in the array provided by mapper.- Specified by:
indexedParam
in interfaceDbStatement<DbStatementGet>
- Overrides:
indexedParam
in classDbStatementBase<DbStatementGet>
- Parameters:
parameters
-Object
instance containing parameters- Returns:
- updated db statement
-
addParam
Description copied from interface:DbStatement
Add next parameter to the list of ordered parameters (e.g. the ones that use?
in SQL).- Specified by:
addParam
in interfaceDbStatement<DbStatementGet>
- Overrides:
addParam
in classDbStatementBase<DbStatementGet>
- Parameters:
parameter
- next parameter to set on this statement- Returns:
- updated db statement
-
addParam
Description copied from interface:DbStatement
Add next parameter to the map of named parameters (e.g. the ones that use:name
in Helidon JDBC SQL integration).- Specified by:
addParam
in interfaceDbStatement<DbStatementGet>
- Overrides:
addParam
in classDbStatementBase<DbStatementGet>
- Parameters:
name
- name of parameterparameter
- value of parameter- Returns:
- updated db statement
-
execute
Description copied from interface:DbStatementGet
Execute this statement using the parameters configured withparams
andaddParams
methods.- Specified by:
execute
in interfaceDbStatementGet
- Returns:
- The result of this statement.
-