Interface MultiQuerySpecification

All Known Implementing Classes:
AbstractMultiQuerySpecification

public interface MultiQuerySpecification
Defines a query or queries to execute that result in a map of named query results.
  • Method Summary

    Modifier and Type
    Method
    Description
    Executes the specified queries and returns their results in a map, where each entry associates a query name with its corresponding result.
    default String
    Retrieves the name associated with this query specification.
    default String
    Retrieves the transaction ID associated with this query specification.
  • Method Details

    • getName

      default String getName()
      Retrieves the name associated with this query specification. Defaults to the simple class name.
      Returns:
      the name of the query specification
    • getTxId

      default String getTxId()
      Retrieves the transaction ID associated with this query specification.
      Returns:
      the transaction ID
    • execute

      Map<String,QueryResult<?>> execute(Connection conn) throws SQLException
      Executes the specified queries and returns their results in a map, where each entry associates a query name with its corresponding result.
      Parameters:
      conn - the database connection to be used for executing the queries
      Returns:
      a map containing query results, where the key is the query name and the value is a QueryResult object containing the results of the query
      Throws:
      SQLException - if a database access error occurs