public class EntityManagerService extends Object implements org.exoplatform.container.component.ComponentRequestLifecycle
exo-pu.
The service is also bound to use of the RequestLifecycle that there is only one EntityManager will be created at beginning of the request lifecycle. The EntityManager instance will be maintained open and shared with all applications relying on this through to the end of lifecycle.
| Modifier and Type | Field and Description |
|---|---|
static String |
PERSISTENCE_UNIT_NAME |
| Constructor and Description |
|---|
EntityManagerService() |
| Modifier and Type | Method and Description |
|---|---|
void |
endRequest(org.exoplatform.container.ExoContainer container) |
String |
getDatasourceName() |
javax.persistence.EntityManager |
getEntityManager() |
boolean |
isStarted(org.exoplatform.container.ExoContainer container) |
void |
setDatasourceName(String datasourceName) |
void |
startRequest(org.exoplatform.container.ExoContainer container) |
public static final String PERSISTENCE_UNIT_NAME
public String getDatasourceName()
public void setDatasourceName(String datasourceName)
public javax.persistence.EntityManager getEntityManager()
public void startRequest(org.exoplatform.container.ExoContainer container)
startRequest in interface org.exoplatform.container.component.ComponentRequestLifecyclepublic void endRequest(org.exoplatform.container.ExoContainer container)
endRequest in interface org.exoplatform.container.component.ComponentRequestLifecyclepublic boolean isStarted(org.exoplatform.container.ExoContainer container)
isStarted in interface org.exoplatform.container.component.ComponentRequestLifecycleCopyright © 2003–2018 eXo Platform SAS. All rights reserved.