java.lang.Object
io.helidon.dbclient.common.AbstractDbExecute
io.helidon.dbclient.mongodb.MongoDbExecute
- All Implemented Interfaces:
DbExecute
- Direct Known Subclasses:
MongoDbTransaction
Execute implementation for MongoDB.
-
Method Summary
Modifier and TypeMethodDescriptioncreateNamedDelete
(String statementName, String statement) Create a delete statement using a named statement passed as an argument.createNamedDmlStatement
(String statementName, String statement) Create a data modification statement using a named statement passed as an argument.createNamedGet
(String statementName, String statement) Create a database query returning a single row using a named statement passed as an argument.createNamedInsert
(String statementName, String statement) Create an insert statement using a named statement passed as an argument.createNamedQuery
(String statementName, String statement) Create a database query using a named statement passed as argument.createNamedUpdate
(String statementName, String statement) Create an update statement using a named statement passed as an argument.<C> Single<C>
Unwrap database executor internals.Methods inherited from class io.helidon.dbclient.common.AbstractDbExecute
createDelete, createDmlStatement, createGet, createInsert, createNamedDelete, createNamedDmlStatement, createNamedGet, createNamedInsert, createNamedQuery, createNamedUpdate, createQuery, createUpdate, generateName, statementText
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.DbExecute
createDelete, createDmlStatement, createGet, createInsert, createNamedDelete, createNamedDmlStatement, createNamedGet, createNamedInsert, createNamedQuery, createNamedUpdate, createQuery, createUpdate, delete, dml, get, insert, namedDelete, namedDml, namedGet, namedInsert, namedQuery, namedUpdate, query, update
-
Method Details
-
createNamedQuery
Description copied from interface:DbExecute
Create a database query using a named statement passed as argument.- Specified by:
createNamedQuery
in interfaceDbExecute
- Parameters:
statementName
- the name of the statementstatement
- the query statement- Returns:
- database statement that can process query returning multiple rows
-
createNamedGet
Description copied from interface:DbExecute
Create a database query returning a single row using a named statement passed as an argument.- Specified by:
createNamedGet
in interfaceDbExecute
- Parameters:
statementName
- the name of the statementstatement
- the statement text- Returns:
- database statement that can process query returning a single row
-
createNamedDmlStatement
Description copied from interface:DbExecute
Create a data modification statement using a named statement passed as an argument.- Specified by:
createNamedDmlStatement
in interfaceDbExecute
- Parameters:
statementName
- the name of the statementstatement
- the statement text- Returns:
- data modification statement
-
createNamedInsert
Description copied from interface:DbExecute
Create an insert statement using a named statement passed as an argument.- Specified by:
createNamedInsert
in interfaceDbExecute
- Parameters:
statementName
- the name of the statementstatement
- the statement text- Returns:
- database statement that can insert data
-
createNamedUpdate
Description copied from interface:DbExecute
Create an update statement using a named statement passed as an argument.- Specified by:
createNamedUpdate
in interfaceDbExecute
- Parameters:
statementName
- the name of the statementstatement
- the statement text- Returns:
- database statement that can update data
-
createNamedDelete
Description copied from interface:DbExecute
Create a delete statement using a named statement passed as an argument.- Specified by:
createNamedDelete
in interfaceDbExecute
- Parameters:
statementName
- the name of the statementstatement
- the statement text- Returns:
- database statement that can delete data
-
unwrap
Description copied from interface:DbExecute
Unwrap database executor internals. Only database connection is supported. Any operations based on this connection are blocking. Reactive support must be implemented in user code. This connection instance is being used to execute all statements in current database executor context.
-