Package cz.cvut.kbss.jopa.model
Interface AbstractEntityManager
- All Superinterfaces:
AutoCloseable,ConfigurationHolder,EntityManager
- All Known Implementing Classes:
EntityManagerImpl
-
Method Summary
Modifier and TypeMethodDescriptionReturn the UnitOfWork that holds the current persistence context.booleanbooleanvoidRemove the current persistence context UnitOfWork.voidLet the managing server session know that a transaction has finished successfully.voidLet the managing server session know that a transaction has been started.Methods inherited from interface cz.cvut.kbss.jopa.sessions.ConfigurationHolder
getConfigurationMethods inherited from interface cz.cvut.kbss.jopa.model.EntityManager
clear, close, contains, createDescriptor, createNamedQuery, createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, createQuery, detach, find, find, flush, getContexts, getCriteriaBuilder, getDelegate, getEntityManagerFactory, getMetamodel, getProperties, getReference, getReference, getTransaction, isConsistent, isInferred, isOpen, merge, merge, persist, persist, refresh, remove, setProperty, unwrap
-
Method Details
-
isLoaded
-
isLoaded
-
getCurrentPersistenceContext
UnitOfWork getCurrentPersistenceContext()Return the UnitOfWork that holds the current persistence context.- Returns:
- UnitOfWork
-
removeCurrentPersistenceContext
void removeCurrentPersistenceContext()Remove the current persistence context UnitOfWork. -
transactionStarted
Let the managing server session know that a transaction has been started.- Parameters:
t- The entity transaction that was started.
-
transactionFinished
Let the managing server session know that a transaction has finished successfully.- Parameters:
t- The committed entity transaction.
-