|
||||||||||
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 | |
---|---|
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()
|
protected 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 |
setFilters(List<Filter> filters)
|
void |
setFlushMode(FlushModeType flushMode)
|
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()
protected List<Filter> getFilters()
protected void setFilters(List<Filter> filters)
public void setFlushMode(FlushModeType flushMode)
setFlushMode
in interface PersistenceContextManager
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |