Class DbStatementContext


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

      • 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 Detail

      • 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