org.jboss.seam.persistence
Interface PersistenceContexts


public interface PersistenceContexts

PersistenceContexts tracks active persistence contexts within a conversation.

This allows for features such as changing the flush mode of all entity managers to @{link FlushModeType.MANUAL during the render response phase when using seam managed transactions in JSF


Method Summary
 void afterRender()
           
 void beforeRender()
          Perform
 void changeFlushMode(FlushModeType flushMode)
          Changes the flush mode of all persistence contexts in the conversation
 FlushModeType getFlushMode()
           
 void restoreFlushMode()
          Restore the previous flush mode if the current flush mode is marked as temporary.
 void touch(ManagedPersistenceContext context)
           
 void untouch(ManagedPersistenceContext context)
           
 

Method Detail

getFlushMode

FlushModeType getFlushMode()

changeFlushMode

void changeFlushMode(FlushModeType flushMode)
Changes the flush mode of all persistence contexts in the conversation

Parameters:
flushMode - the new flush mode

restoreFlushMode

void restoreFlushMode()
Restore the previous flush mode if the current flush mode is marked as temporary.


beforeRender

void beforeRender()
Perform


afterRender

void afterRender()

touch

void touch(ManagedPersistenceContext context)

untouch

void untouch(ManagedPersistenceContext context)


Copyright © 2011 Seam Framework. All Rights Reserved.