Package com.valqueries.automapper
Interface ValqueriesAccessDataLayer<T,K>
- Type Parameters:
T
- the type of the repositoryK
- 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.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.ran.CrudRepository
CrudRepository.CrudUpdateResult, CrudRepository.InlineQuery<T,
Q extends CrudRepository.InlineQuery<T, Q>> -
Method Summary
Modifier and TypeMethodDescriptionQuery for the type of this repository in a transaction.<O> ValqueriesQuery<O>
query
(ITransactionContext tx, Class<O> oClass) Query for another type in a transaction.<O> ValqueriesQuery<O>
Query for another type without a transaction.Methods inherited from interface io.ran.CrudRepository
deleteById, deleteByIds, get, getAll, save
Methods inherited from interface io.ran.CrudRepositoryBaseRepo
query
Methods inherited from interface com.valqueries.automapper.ValqueriesCrudRepository
doRetryableInTransaction, get, insert, insert, insertOther, insertOthers, obtainInTransaction, save, save, saveOther, saveOthers, upsert, upsert
-
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
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
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
-