Class EntityApplicationStatePersistenceStrategy
- java.lang.Object
-
- org.apache.tapestry5.internal.services.SessionApplicationStatePersistenceStrategy
-
- org.apache.tapestry5.internal.jpa.EntityApplicationStatePersistenceStrategy
-
- All Implemented Interfaces:
ApplicationStatePersistenceStrategy
public class EntityApplicationStatePersistenceStrategy extends SessionApplicationStatePersistenceStrategy
-
-
Constructor Summary
Constructors Constructor Description EntityApplicationStatePersistenceStrategy(Request request, EntityManagerManager entityManagerManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
get(java.lang.Class<T> ssoClass, ApplicationStateCreator<T> creator)
Gets the SSO from the domain.<T> void
set(java.lang.Class<T> ssoClass, T sso)
Stores a new SSO, possibly replacing the existing one.protected <T> T
transformPersistedValue(java.lang.Object value)
-
Methods inherited from class org.apache.tapestry5.internal.services.SessionApplicationStatePersistenceStrategy
buildKey, exists, getIfExists, getOrCreate, getSession
-
-
-
-
Constructor Detail
-
EntityApplicationStatePersistenceStrategy
public EntityApplicationStatePersistenceStrategy(Request request, EntityManagerManager entityManagerManager)
-
-
Method Detail
-
transformPersistedValue
protected <T> T transformPersistedValue(java.lang.Object value)
- Overrides:
transformPersistedValue
in classSessionApplicationStatePersistenceStrategy
-
get
public <T> T get(java.lang.Class<T> ssoClass, ApplicationStateCreator<T> creator)
Description copied from interface:ApplicationStatePersistenceStrategy
Gets the SSO from the domain. If the SSO does not already exist, it is created and stored, then returned.- Specified by:
get
in interfaceApplicationStatePersistenceStrategy
- Overrides:
get
in classSessionApplicationStatePersistenceStrategy
-
set
public <T> void set(java.lang.Class<T> ssoClass, T sso)
Description copied from interface:ApplicationStatePersistenceStrategy
Stores a new SSO, possibly replacing the existing one.- Specified by:
set
in interfaceApplicationStatePersistenceStrategy
- Overrides:
set
in classSessionApplicationStatePersistenceStrategy
sso
- instance to store, or null to delete existing
-
-