Package com.helixframework.db.repository
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 TypeMethodDescriptionMap<String,QueryResult<?>> execute(Connection conn) Executes the specified queries and returns their results in a map, where each entry associates a query name with its corresponding result.default StringgetName()Retrieves the name associated with this query specification.default StringgetTxId()Retrieves the transaction ID associated with this query specification.
-
Method Details
-
getName
Retrieves the name associated with this query specification. Defaults to the simple class name.- Returns:
- the name of the query specification
-
getTxId
Retrieves the transaction ID associated with this query specification.- Returns:
- the transaction ID
-
execute
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
QueryResultobject containing the results of the query - Throws:
SQLException- if a database access error occurs
-