org.jboss.seam.persistence
Class PersistenceContexts

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

@Name(value="org.jboss.seam.persistence.persistenceContexts")
@Scope(value=CONVERSATION)
@BypassInterceptors
@Install(precedence=0)
public class PersistenceContexts
extends AbstractMutable
implements Serializable

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

Constructor Summary
PersistenceContexts()
           
 
Method Summary
 void afterRender()
           
 void beforeRender()
           
 void changeFlushMode(FlushModeType flushMode)
           
 void changeFlushMode(FlushModeType flushMode, boolean temporary)
           
 void create()
           
 FlushModeType getFlushMode()
           
 Set<String> getTouchedContexts()
           
static PersistenceContexts instance()
           
 void restoreFlushMode()
          Restore the previous flush mode if the current flush mode is marked as temporary.
 void touch(String context)
           
 void untouch(String context)
           
 
Methods inherited from class org.jboss.seam.core.AbstractMutable
clearDirty, setDirty, setDirty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceContexts

public PersistenceContexts()
Method Detail

create

@Create
public void create()

getFlushMode

public FlushModeType getFlushMode()

getTouchedContexts

public Set<String> getTouchedContexts()

touch

public void touch(String context)

untouch

public void untouch(String context)

instance

public static PersistenceContexts instance()

changeFlushMode

public void changeFlushMode(FlushModeType flushMode)

changeFlushMode

public void changeFlushMode(FlushModeType flushMode,
                            boolean temporary)

restoreFlushMode

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


beforeRender

public void beforeRender()

afterRender

public void afterRender()


Copyright © 2011 Seam Framework. All Rights Reserved.