|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.seam.persistence.ManagedHibernateSession
@Scope(value=CONVERSATION) @BypassInterceptors public class ManagedHibernateSession
A Seam component that manages a conversation-scoped extended persistence context that can be shared by arbitrary other components.
| Constructor Summary | |
|---|---|
ManagedHibernateSession()
|
|
| Method Summary | |
|---|---|
void |
afterCompletion(int status)
|
void |
beforeCompletion()
|
void |
changeFlushMode(FlushModeType flushMode)
|
boolean |
clearDirty()
Get and clear the dirty flag. |
void |
create(Component component)
|
void |
destroy()
|
String |
getComponentName()
|
List<Filter> |
getFilters()
Hibernate filters to enable automatically |
org.hibernate.Session |
getSession()
|
Expressions.ValueExpression<org.hibernate.SessionFactory> |
getSessionFactory()
|
String |
getSessionFactoryJndiName()
The JNDI name of the Hibernate SessionFactory, if it is to be obtained from JNDI |
void |
sessionDidActivate(javax.servlet.http.HttpSessionEvent event)
|
void |
sessionWillPassivate(javax.servlet.http.HttpSessionEvent event)
|
void |
setFilters(List<Filter> filters)
|
void |
setSessionFactory(Expressions.ValueExpression<org.hibernate.SessionFactory> sessionFactory)
A value binding expression that returns a SessionFactory, if it is to be obtained as a Seam component reference |
void |
setSessionFactoryJndiName(String sessionFactoryName)
|
protected void |
setSessionFlushMode(FlushModeType flushMode)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ManagedHibernateSession()
| Method Detail |
|---|
public boolean clearDirty()
Mutable
clearDirty in interface Mutable@Create public void create(Component component)
@Unwrap
public org.hibernate.Session getSession()
throws Exception
Exceptionpublic void sessionWillPassivate(javax.servlet.http.HttpSessionEvent event)
sessionWillPassivate in interface javax.servlet.http.HttpSessionActivationListenerpublic void sessionDidActivate(javax.servlet.http.HttpSessionEvent event)
sessionDidActivate in interface javax.servlet.http.HttpSessionActivationListener@Destroy public void destroy()
public void afterCompletion(int status)
afterCompletion in interface Synchronizationpublic void beforeCompletion()
beforeCompletion in interface Synchronizationpublic String getComponentName()
public void changeFlushMode(FlushModeType flushMode)
changeFlushMode in interface PersistenceContextManagerprotected void setSessionFlushMode(FlushModeType flushMode)
public String getSessionFactoryJndiName()
public void setSessionFactoryJndiName(String sessionFactoryName)
public void setSessionFactory(Expressions.ValueExpression<org.hibernate.SessionFactory> sessionFactory)
public Expressions.ValueExpression<org.hibernate.SessionFactory> getSessionFactory()
public List<Filter> getFilters()
public void setFilters(List<Filter> filters)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||