java.lang.Object
io.helidon.dbclient.DbExecuteBase
io.helidon.dbclient.mongodb.MongoDbExecute
- All Implemented Interfaces:
DbExecute
Execute implementation for MongoDB.
-
Method Summary
Modifier and TypeMethodDescriptioncreateNamedDelete
(String name, String stmt) Create a delete statement using a named statement passed as an argument.createNamedDmlStatement
(String name, String stmt) Create a data modification statement using a named statement passed as an argument.createNamedGet
(String name, String stmt) Create a database query returning a single row using a named statement passed as an argument.createNamedInsert
(String name, String stmt) Create an insert statement using a named statement passed as an argument.createNamedQuery
(String name, String stmt) Create a database query using a named statement passed as argument.createNamedUpdate
(String name, String stmt) Create an update statement using a named statement passed as an argument.<C> C
Unwrap database executor internals.Methods inherited from class io.helidon.dbclient.DbExecuteBase
context, context, 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
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.- Parameters:
name
- the name of the statementstmt
- 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.- Parameters:
name
- the name of the statementstmt
- 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.- Parameters:
name
- the name of the statementstmt
- 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.- Parameters:
name
- the name of the statementstmt
- 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.- Parameters:
name
- the name of the statementstmt
- 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.- Parameters:
name
- the name of the statementstmt
- 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. This connection instance is being used to execute all statements in current database executor context.When
java.sql.Connection
is requested for JDBC provider, this connection must be closed by user code usingclose()
method on returnedConnection
instance.- Type Parameters:
C
- target class to be unwrapped- Parameters:
cls
- target class to be unwrapped- Returns:
- database executor internals matching provided class
-