Package com.helixframework.db.repository
Interface QuerySpecification<T>
- All Known Subinterfaces:
CursorQuerySpecification<T,,C> MappingCursorQuerySpecification<R,,C> MappingOffsetQuerySpecification<R>,OffsetQuerySpecification<T>
- All Known Implementing Classes:
AbstractQuerySpecification
public interface QuerySpecification<T>
Defines a query to execute.
-
Method Summary
-
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 query defined by this QuerySpecification.- Parameters:
conn- the database connection to be used for executing the query- Returns:
- a
QueryResultobtained from executing the query - Throws:
SQLException- if a database access error occurs
-