java.lang.Object
io.helidon.dbclient.mongodb.MongoDbStatementGet
- All Implemented Interfaces:
DbStatement<DbStatementGet,
,Single<Optional<DbRow>>> DbStatementGet
Statement for GET operation in mongoDB.
-
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.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
params
-
Method Details
-
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,
Single<Optional<DbRow>>> - 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,
Single<Optional<DbRow>>> - 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,
Single<Optional<DbRow>>> - 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,
Single<Optional<DbRow>>> - 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,
Single<Optional<DbRow>>> - 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,
Single<Optional<DbRow>>> - Parameters:
name
- name of parameterparameter
- value of parameter- Returns:
- updated db statement
-
execute
Description copied from interface:DbStatement
Execute this statement using the parameters configured withparams
andaddParams
methods.- Specified by:
execute
in interfaceDbStatement<DbStatementGet,
Single<Optional<DbRow>>> - Returns:
- The result of this statement, never blocking.
-