|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.seam.core.ManagedPersistenceContext
@Scope(value=CONVERSATION) @Intercept(value=NEVER) @Install(value=false) public class ManagedPersistenceContext
A Seam component that manages a conversation-scoped extended persistence context that can be shared by arbitrary other components.
Constructor Summary | |
---|---|
ManagedPersistenceContext()
|
Method Summary | |
---|---|
void |
changeFlushMode(FlushModeType flushMode)
|
boolean |
clearDirty()
Get and clear the dirty flag. |
void |
create(Component component)
|
void |
destroy()
|
String |
getComponentName()
|
javax.persistence.EntityManager |
getEntityManager()
|
Expressions.ValueBinding<javax.persistence.EntityManagerFactory> |
getEntityManagerFactory()
A value binding expression that returns an EntityManagerFactory, for use of JPA outside of Java EE 5 / Embeddable EJB3. |
javax.persistence.EntityManagerFactory |
getEntityManagerFactoryFromJndiOrValueBinding()
|
List<Filter> |
getFilters()
Hibernate filters to enable automatically |
String |
getPersistenceUnitJndiName()
The JNDI name of the EntityManagerFactory, for use of JPA in Java EE 5 / Embeddable EJB3. |
void |
sessionDidActivate(javax.servlet.http.HttpSessionEvent event)
|
void |
sessionWillPassivate(javax.servlet.http.HttpSessionEvent event)
|
void |
setEntityManagerFactory(Expressions.ValueBinding<javax.persistence.EntityManagerFactory> entityManagerFactory)
|
protected void |
setEntityManagerFlushMode(FlushModeType flushMode)
|
void |
setFilters(List<Filter> filters)
|
void |
setPersistenceUnitJndiName(String persistenceUnitName)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ManagedPersistenceContext()
Method Detail |
---|
public boolean clearDirty()
Mutable
clearDirty
in interface Mutable
@Create public void create(Component component)
@Unwrap public javax.persistence.EntityManager getEntityManager() throws NamingException, SystemException
NamingException
SystemException
public void sessionWillPassivate(javax.servlet.http.HttpSessionEvent event)
sessionWillPassivate
in interface javax.servlet.http.HttpSessionActivationListener
public void sessionDidActivate(javax.servlet.http.HttpSessionEvent event)
sessionDidActivate
in interface javax.servlet.http.HttpSessionActivationListener
@Destroy public void destroy()
public javax.persistence.EntityManagerFactory getEntityManagerFactoryFromJndiOrValueBinding()
public Expressions.ValueBinding<javax.persistence.EntityManagerFactory> getEntityManagerFactory()
public void setEntityManagerFactory(Expressions.ValueBinding<javax.persistence.EntityManagerFactory> entityManagerFactory)
public String getPersistenceUnitJndiName()
public void setPersistenceUnitJndiName(String persistenceUnitName)
public String getComponentName()
public List<Filter> getFilters()
public void setFilters(List<Filter> filters)
public void changeFlushMode(FlushModeType flushMode)
changeFlushMode
in interface PersistenceContextManager
protected void setEntityManagerFlushMode(FlushModeType flushMode)
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |