- java.lang.Object
-
- io.helidon.dbclient.common.AbstractDbExecute
-
- io.helidon.dbclient.mongodb.MongoDbExecute
-
- io.helidon.dbclient.mongodb.MongoDbTransaction
-
- All Implemented Interfaces:
DbExecute
,DbTransaction
public class MongoDbTransaction extends MongoDbExecute implements DbTransaction
Transaction execute implementation for MongoDB.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DbStatementDml
createNamedDelete(String statementName, String statement)
Create a delete statement using a named statement passed as an argument.DbStatementDml
createNamedDmlStatement(String statementName, String statement)
Create a data modification statement using a named statement passed as an argument.DbStatementGet
createNamedGet(String statementName, String statement)
Create a database query returning a single row using a named statement passed as an argument.DbStatementDml
createNamedInsert(String statementName, String statement)
Create an insert statement using a named statement passed as an argument.DbStatementQuery
createNamedQuery(String statementName, String statement)
Create a database query using a named statement passed as argument.DbStatementDml
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 Detail
-
createNamedQuery
public DbStatementQuery createNamedQuery(String statementName, String statement)
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
public DbStatementGet createNamedGet(String statementName, String statement)
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
public DbStatementDml createNamedDmlStatement(String statementName, String statement)
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
public DbStatementDml createNamedInsert(String statementName, String statement)
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
public DbStatementDml createNamedUpdate(String statementName, String statement)
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
public DbStatementDml createNamedDelete(String statementName, String statement)
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
-
-