Interface TransactionAccessFactory
public interface TransactionAccessFactory
A factory for creating a
TransactionAccess
.
This is created via the ServiceLoader
API.- Since:
- 1.4.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and Type Method Description TransactionAccess
createTransactionAccess(javax.persistence.EntityManager entityManager)
Creates a transaction access object.int
getPriority()
Returns a priority value that is used to select among multiple implementations.
-
Method Details
-
createTransactionAccess
Creates a transaction access object.- Parameters:
entityManager
- The entity manager associated with the transaction.- Returns:
- The transaction access object
-
getPriority
int getPriority()Returns a priority value that is used to select among multiple implementations. The lower the returned value, the higher the priority.- Returns:
- the priority value
-