public class TransactionalContext extends Object
| Modifier and Type | Method and Description |
|---|---|
static Optional<javax.persistence.EntityManager> |
get()
Get the current thread local entity manager instance.
|
static void |
remove()
Remove the thread local entity manager.
|
static void |
set(javax.persistence.EntityManager entityManager)
Set the thread local entity manager instance.
|
public static Optional<javax.persistence.EntityManager> get()
public static void set(javax.persistence.EntityManager entityManager)
entityManager - the entity manager instancepublic static void remove()
Copyright © 2016–2017 Sharmarke Aden. All rights reserved.