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.voidrollback()Configure this transaction to (eventually) rollback.Methods inherited from class io.helidon.dbclient.mongodb.MongoDbExecute
unwrapMethods inherited from class io.helidon.dbclient.common.AbstractDbExecute
createDelete, createDmlStatement, createGet, createInsert, createNamedDelete, createNamedDmlStatement, createNamedGet, createNamedInsert, createNamedQuery, createNamedUpdate, createQuery, createUpdate, generateName, statementTextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:DbExecuteCreate a database query using a named statement passed as argument.- Specified by:
createNamedQueryin interfaceDbExecute- Overrides:
createNamedQueryin 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:DbExecuteCreate a database query returning a single row using a named statement passed as an argument.- Specified by:
createNamedGetin interfaceDbExecute- Overrides:
createNamedGetin 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:DbExecuteCreate a data modification statement using a named statement passed as an argument.- Specified by:
createNamedDmlStatementin interfaceDbExecute- Overrides:
createNamedDmlStatementin classMongoDbExecute- Parameters:
statementName- the name of the statementstatement- the statement text- Returns:
- data modification statement
-
createNamedInsert
Description copied from interface:DbExecuteCreate an insert statement using a named statement passed as an argument.- Specified by:
createNamedInsertin interfaceDbExecute- Overrides:
createNamedInsertin classMongoDbExecute- Parameters:
statementName- the name of the statementstatement- the statement text- Returns:
- database statement that can insert data
-
createNamedUpdate
Description copied from interface:DbExecuteCreate an update statement using a named statement passed as an argument.- Specified by:
createNamedUpdatein interfaceDbExecute- Overrides:
createNamedUpdatein classMongoDbExecute- Parameters:
statementName- the name of the statementstatement- the statement text- Returns:
- database statement that can update data
-
createNamedDelete
Description copied from interface:DbExecuteCreate a delete statement using a named statement passed as an argument.- Specified by:
createNamedDeletein interfaceDbExecute- Overrides:
createNamedDeletein 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:DbTransactionConfigure this transaction to (eventually) rollback.- Specified by:
rollbackin interfaceDbTransaction
-