br.gov.frameworkdemoiselle.internal.configuration
Class EntityManagerConfig

java.lang.Object
  extended by br.gov.frameworkdemoiselle.internal.configuration.EntityManagerConfig
All Implemented Interfaces:
Serializable

public class EntityManagerConfig
extends Object
implements Serializable

Configuration class responsible for retrieving specific entity manager parameter values from properties file.

See Also:
Serialized Form

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.
 String getPersistenceUnitName()
          Deprecated.  
 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

EntityManagerConfig

public EntityManagerConfig()
Method Detail

getPersistenceUnitName

@Deprecated
public String getPersistenceUnitName()
Deprecated. 

Returns:

getDefaultPersistenceUnitName

public String getDefaultPersistenceUnitName()
Getter for persistence unit name.


getEntityManagerScope

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.


setEntityManagerScope

public void setEntityManagerScope(EntityManagerConfig.EntityManagerScope entityManagerScope)


Copyright © 2014 SERPRO - Serviço Federal de Processamento de Dados. All Rights Reserved.