Class EntityApplicationStatePersistenceStrategy

  extended by
      extended by org.apache.tapestry5.internal.jpa.EntityApplicationStatePersistenceStrategy
All Implemented Interfaces:

public class EntityApplicationStatePersistenceStrategy
extends SessionApplicationStatePersistenceStrategy

Constructor Summary
EntityApplicationStatePersistenceStrategy(Request request, EntityManagerManager entityManagerManager)
Method Summary
<T> T
get(Class<T> ssoClass, ApplicationStateCreator<T> creator)
          Gets the SSO from the domain.
<T> void
set(Class<T> ssoClass, T sso)
          Stores a new SSO, possibly replacing the existing one.
Methods inherited from class
buildKey, exists, getOrCreate, getSession
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public EntityApplicationStatePersistenceStrategy(Request request,
                                                 EntityManagerManager entityManagerManager)
Method Detail


public <T> T get(Class<T> ssoClass,
                 ApplicationStateCreator<T> creator)
Description copied from interface: ApplicationStatePersistenceStrategy
Gets the SSO from the domain. If the ASO does not already exist, it is created and stored, then returned.

Specified by:
get in interface ApplicationStatePersistenceStrategy
get in class SessionApplicationStatePersistenceStrategy


public <T> void set(Class<T> ssoClass,
                    T sso)
Description copied from interface: ApplicationStatePersistenceStrategy
Stores a new SSO, possibly replacing the existing one.

Specified by:
set in interface ApplicationStatePersistenceStrategy
set in class SessionApplicationStatePersistenceStrategy
sso - instance to store, or null to delete existing

Copyright © 2003-2012 The Apache Software Foundation.