org.jboss.seam.persistence
Class PersistenceContextsImpl

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

@ConversationScoped
public class PersistenceContextsImpl
extends Object
implements Serializable, org.jboss.seam.persistence.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, Stuart Douglas
See Also:
Serialized Form

Nested Class Summary
static class PersistenceContextsImpl.PersistenceContextDefintition
           
 
Constructor Summary
PersistenceContextsImpl()
           
 
Method Summary
 void afterRender()
           
 void beforeRender()
           
 void changeFlushMode(org.jboss.seam.persistence.FlushModeType flushMode)
           
 void create(org.jboss.seam.persistence.FlushModeManager manager)
           
 org.jboss.seam.persistence.FlushModeType getFlushMode()
           
 Set<PersistenceContextsImpl.PersistenceContextDefintition> getTouchedContexts()
           
 void restoreFlushMode()
           
 void touch(org.jboss.seam.persistence.ManagedPersistenceContext context)
           
 void untouch(org.jboss.seam.persistence.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(org.jboss.seam.persistence.FlushModeManager manager)

getFlushMode

public org.jboss.seam.persistence.FlushModeType getFlushMode()
Specified by:
getFlushMode in interface org.jboss.seam.persistence.PersistenceContexts

getTouchedContexts

public Set<PersistenceContextsImpl.PersistenceContextDefintition> getTouchedContexts()

touch

public void touch(org.jboss.seam.persistence.ManagedPersistenceContext context)
Specified by:
touch in interface org.jboss.seam.persistence.PersistenceContexts

untouch

public void untouch(org.jboss.seam.persistence.ManagedPersistenceContext context)
Specified by:
untouch in interface org.jboss.seam.persistence.PersistenceContexts

changeFlushMode

public void changeFlushMode(org.jboss.seam.persistence.FlushModeType flushMode)
Specified by:
changeFlushMode in interface org.jboss.seam.persistence.PersistenceContexts

restoreFlushMode

public void restoreFlushMode()
Specified by:
restoreFlushMode in interface org.jboss.seam.persistence.PersistenceContexts

beforeRender

public void beforeRender()
Specified by:
beforeRender in interface org.jboss.seam.persistence.PersistenceContexts

afterRender

public void afterRender()
Specified by:
afterRender in interface org.jboss.seam.persistence.PersistenceContexts


Copyright © 2011 Seam Framework. All Rights Reserved.