java.lang.Object
io.helidon.dbclient.DbClientBase
io.helidon.dbclient.mongodb.MongoDbClient
- All Implemented Interfaces:
DbClient
,AutoCloseable
MongoDB driver handler.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.dbclient.DbClient
DbClient.Builder
-
Field Summary
Fields inherited from interface io.helidon.dbclient.DbClient
MAPPING_QUALIFIER
-
Method Summary
Methods inherited from class io.helidon.dbclient.DbClientBase
close, context
-
Method Details
-
execute
Description copied from interface:DbClient
Execute database statements. -
transaction
Description copied from interface:DbClient
Execute database statements in transaction.DbTransaction
life-cycle must always be finished withDbTransaction.commit()
orDbTransaction.rollback()
. Those two methods mentioned above will also release database resources allocated by this transaction.- Specified by:
transaction
in interfaceDbClient
- Returns:
- transaction to execute database statements
-
dbType
Description copied from interface:DbClient
Type of this database provider (such as jdbc:mysql, mongoDB etc.). -
unwrap
Description copied from interface:DbClient
Unwrap database client internals. Only database connection is supported.When
java.sql.Connection
is requested for JDBC provider, this connection must be closed by user code usingclose()
method on returnedConnection
instance.
-