Class DbStatementContext

java.lang.Object
io.helidon.dbclient.common.DbStatementContext

public class DbStatementContext extends Object
Context of execution of a specific statement.
  • Constructor Details

    • DbStatementContext

      protected DbStatementContext(DbStatementContext.BuilderBase<?> builder)
      Create a new instance using a builder each implementation must extend.
      Parameters:
      builder - to get required fields from
  • Method Details

    • builder

      public static DbStatementContext.Builder builder()
      Create a new builder.
      Returns:
      a new builder instance
    • create

      public static DbStatementContext create(DbClientContext clientContext, DbStatementType statementType, String statementName, String statementText)
      Create a new instance of this class.
      Parameters:
      clientContext - DB client context
      statementType - type of statement
      statementName - name of statement
      statementText - text of the statement to execute
      Returns:
      a new statement context
    • clientContext

      public DbClientContext clientContext()
      Client context associated with the client executing this statement.
      Returns:
      client context
    • statementType

      public DbStatementType statementType()
      Statement type of this statement.
      Returns:
      type of statement
    • statementName

      public String statementName()
      Name of this statement.
      Returns:
      name of statement
    • statement

      public String statement()
      Statement text as configured.
      Returns:
      statement text