|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbr.gov.frameworkdemoiselle.internal.configuration.EntityManagerConfig
public class EntityManagerConfig
Configuration class responsible for retrieving specific entity manager parameter values from properties file.
| Nested Class Summary | |
|---|---|
static class |
EntityManagerConfig.EntityManagerScope
Supported scopes for the entity manager |
| Constructor Summary | |
|---|---|
EntityManagerConfig()
|
|
| Method Summary | |
|---|---|
String |
getDefaultPersistenceUnitName()
Getter for persistence unit name. |
EntityManagerConfig.EntityManagerScope |
getEntityManagerScope()
Defines the scope of EntityManager's produced by the internal producer. |
void |
setEntityManagerScope(EntityManagerConfig.EntityManagerScope entityManagerScope)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntityManagerConfig()
| Method Detail |
|---|
public String getDefaultPersistenceUnitName()
public EntityManagerConfig.EntityManagerScope getEntityManagerScope()
Defines the scope of EntityManager's produced by the internal producer.
Valid values are NOSCOPE,REQUEST,SESSION,VIEW,CONVERSATION and APPLICATION.
NOSCOPE means every injected entity manager will be a different instance.
The default value is REQUEST, meaning the producer will create the same entity manager for the duration of the request.
public void setEntityManagerScope(EntityManagerConfig.EntityManagerScope entityManagerScope)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||