Class DbExecuteContext

java.lang.Object
io.helidon.dbclient.DbExecuteContext
All Implemented Interfaces:
DbContext

public class DbExecuteContext extends Object implements DbContext
Execution context.
  • Constructor Details

  • Method Details

    • statementName

      public String statementName()
      Get the execution statement name.
      Returns:
      statement name
    • statement

      public String statement()
      Get the execution statement.
      Returns:
      statement
    • missingMapParametersAsNull

      public boolean missingMapParametersAsNull()
      Description copied from interface: DbContext
      Configured missing values in named parameters Map handling.
      Specified by:
      missingMapParametersAsNull in interface DbContext
      Returns:
      when set to true, named parameters value missing in the Map is considered as null, when set to false, any parameter value missing in the Map will cause an exception.
    • statements

      public DbStatements statements()
      Description copied from interface: DbContext
      Configured statements.
      Specified by:
      statements in interface DbContext
      Returns:
      statements
    • dbMapperManager

      public DbMapperManager dbMapperManager()
      Description copied from interface: DbContext
      Configured DB Mapper manager.
      Specified by:
      dbMapperManager in interface DbContext
      Returns:
      DB mapper manager
    • mapperManager

      public MapperManager mapperManager()
      Description copied from interface: DbContext
      Configured mapper manager.
      Specified by:
      mapperManager in interface DbContext
      Returns:
      mapper manager
    • clientServices

      public List<DbClientService> clientServices()
      Description copied from interface: DbContext
      Configured client services (interceptors).
      Specified by:
      clientServices in interface DbContext
      Returns:
      client services
    • dbType

      public String dbType()
      Description copied from interface: DbContext
      Type of this database provider (such as jdbc:mysql, mongoDB etc.).
      Specified by:
      dbType in interface DbContext
      Returns:
      name of the database provider
    • clientContext

      protected <C extends DbClientContext> C clientContext(Class<C> cls)
      Returns client context cast to it's extending class.
      Type Parameters:
      C - client context extending type
      Parameters:
      cls - DbClientContext extending class
      Returns:
      extended client context
    • create

      public static DbExecuteContext create(String statementName, String statement, DbClientContext context)
      Create a new execution context.
      Parameters:
      statementName - statement name
      statement - statement
      context - client context
      Returns:
      execution context
    • builder

      public static DbExecuteContext.Builder builder()
      Create Helidon database client context builder.
      Returns:
      database client context builder