java.lang.Object
io.helidon.dbclient.common.AbstractDbExecute
io.helidon.dbclient.mongodb.MongoDbExecute
io.helidon.dbclient.mongodb.MongoDbTransaction
- All Implemented Interfaces:
DbExecute
,DbTransaction
Transaction 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.void
rollback()
Configure this transaction to (eventually) rollback.Methods inherited from class io.helidon.dbclient.mongodb.MongoDbExecute
unwrap
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, unwrap, 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
- Overrides:
createNamedQuery
in classMongoDbExecute
- 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
- Overrides:
createNamedGet
in classMongoDbExecute
- 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
- Overrides:
createNamedDmlStatement
in classMongoDbExecute
- 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
- Overrides:
createNamedInsert
in classMongoDbExecute
- 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
- Overrides:
createNamedUpdate
in classMongoDbExecute
- 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
- Overrides:
createNamedDelete
in classMongoDbExecute
- Parameters:
statementName
- the name of the statementstatement
- the statement text- Returns:
- database statement that can delete data
-
rollback
public void rollback()Description copied from interface:DbTransaction
Configure this transaction to (eventually) rollback.- Specified by:
rollback
in interfaceDbTransaction
-