Interface ValqueriesAccessDataLayer<T,K>

Type Parameters:
T - the type of the repository
K - the type of the primary key of T, or in case of compound primary key, T itself
All Superinterfaces:
CrudRepository<T,K>, CrudRepositoryBaseRepo<T,K,ValqueriesQuery<T>>, ValqueriesCrudRepository<T,K>
All Known Implementing Classes:
ValqueriesAccessDataLayerImpl, ValqueriesAccessDataLayerTestDouble

public interface ValqueriesAccessDataLayer<T,K> extends ValqueriesCrudRepository<T,K>, CrudRepositoryBaseRepo<T,K,ValqueriesQuery<T>>
Extends ValqueriesCrudRepository with query functions.
  • Method Details

    • query

      Query for the type of this repository in a transaction.
      Parameters:
      tx - the transaction context (will be rolled-back if an error occurs)
      Returns:
      a new query for this repository in a transaction
    • query

      <O> ValqueriesQuery<O> query(Class<O> oClass)
      Query for another type without a transaction.
      Type Parameters:
      O - the type to be queried
      Parameters:
      oClass - the type to be queried
      Returns:
      a new query for the specified type
    • query

      <O> ValqueriesQuery<O> query(ITransactionContext tx, Class<O> oClass)
      Query for another type in a transaction.
      Type Parameters:
      O - the type to be queried
      Parameters:
      tx - the transaction context (will be rolled-back if an error occurs)
      oClass - the type to be queried
      Returns:
      a new query for the specified type in a transaction