Class MongoDbExecute

java.lang.Object
io.helidon.dbclient.DbExecuteBase
io.helidon.dbclient.mongodb.MongoDbExecute
All Implemented Interfaces:
DbExecute

public class MongoDbExecute extends DbExecuteBase
Execute implementation for MongoDB.
  • Method Details

    • createNamedQuery

      public DbStatementQuery createNamedQuery(String name, String stmt)
      Description copied from interface: DbExecute
      Create a database query using a named statement passed as argument.
      Parameters:
      name - the name of the statement
      stmt - the query statement
      Returns:
      database statement that can process query returning multiple rows
    • createNamedGet

      public DbStatementGet createNamedGet(String name, String stmt)
      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 statement
      stmt - the statement text
      Returns:
      database statement that can process query returning a single row
    • createNamedDmlStatement

      public DbStatementDml createNamedDmlStatement(String name, String stmt)
      Description copied from interface: DbExecute
      Create a data modification statement using a named statement passed as an argument.
      Parameters:
      name - the name of the statement
      stmt - the statement text
      Returns:
      data modification statement
    • createNamedInsert

      public DbStatementDml createNamedInsert(String name, String stmt)
      Description copied from interface: DbExecute
      Create an insert statement using a named statement passed as an argument.
      Parameters:
      name - the name of the statement
      stmt - the statement text
      Returns:
      database statement that can insert data
    • createNamedUpdate

      public DbStatementDml createNamedUpdate(String name, String stmt)
      Description copied from interface: DbExecute
      Create an update statement using a named statement passed as an argument.
      Parameters:
      name - the name of the statement
      stmt - the statement text
      Returns:
      database statement that can update data
    • createNamedDelete

      public DbStatementDml createNamedDelete(String name, String stmt)
      Description copied from interface: DbExecute
      Create a delete statement using a named statement passed as an argument.
      Parameters:
      name - the name of the statement
      stmt - the statement text
      Returns:
      database statement that can delete data
    • unwrap

      public <C> C unwrap(Class<C> cls)
      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 using close() method on returned Connection instance.

      Type Parameters:
      C - target class to be unwrapped
      Parameters:
      cls - target class to be unwrapped
      Returns:
      database executor internals matching provided class