org.jboss.seam.persistence
Class PersistenceContextsImpl

java.lang.Object
  extended by org.jboss.seam.persistence.PersistenceContextsImpl
All Implemented Interfaces:
Serializable, PersistenceContexts

@ConversationScoped
public class PersistenceContextsImpl
extends Object
implements Serializable, PersistenceContexts

Maintains the set of persistence contexts that have been touched in a conversation. Also controls the flush mode used by the persistence contexts during the render phase.

Author:
Gavin King
See Also:
Serialized Form

Nested Class Summary
static class PersistenceContextsImpl.PersistenceContextDefintition
           
 
Constructor Summary
PersistenceContextsImpl()
           
 
Method Summary
 void afterRender()
           
 void beforeRender()
           
 void changeFlushMode(FlushModeType flushMode)
           
 void create(FlushModeManager manager)
           
 FlushModeType getFlushMode()
           
 Set<PersistenceContextsImpl.PersistenceContextDefintition> getTouchedContexts()
           
 void restoreFlushMode()
           
 void touch(ManagedPersistenceContext context)
           
 void untouch(ManagedPersistenceContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceContextsImpl

public PersistenceContextsImpl()
Method Detail

create

@Inject
public void create(FlushModeManager manager)

getFlushMode

public FlushModeType getFlushMode()
Specified by:
getFlushMode in interface PersistenceContexts

getTouchedContexts

public Set<PersistenceContextsImpl.PersistenceContextDefintition> getTouchedContexts()

touch

public void touch(ManagedPersistenceContext context)
Specified by:
touch in interface PersistenceContexts

untouch

public void untouch(ManagedPersistenceContext context)
Specified by:
untouch in interface PersistenceContexts

changeFlushMode

public void changeFlushMode(FlushModeType flushMode)
Specified by:
changeFlushMode in interface PersistenceContexts

restoreFlushMode

public void restoreFlushMode()
Specified by:
restoreFlushMode in interface PersistenceContexts

beforeRender

public void beforeRender()
Specified by:
beforeRender in interface PersistenceContexts

afterRender

public void afterRender()
Specified by:
afterRender in interface PersistenceContexts


Copyright © 2011 Seam Framework. All Rights Reserved.