Class EntityApplicationStatePersistenceStrategy
- java.lang.Object
- 
- org.apache.tapestry5.internal.services.SessionApplicationStatePersistenceStrategy
- 
- org.apache.tapestry5.hibernate.web.internal.EntityApplicationStatePersistenceStrategy
 
 
- 
- All Implemented Interfaces:
- ApplicationStatePersistenceStrategy
 
 public class EntityApplicationStatePersistenceStrategy extends SessionApplicationStatePersistenceStrategy Persists Hibernate entities as SSOs by storing their primary key in theSession.- See Also:
- PersistedEntity
 
- 
- 
Constructor SummaryConstructors Constructor Description EntityApplicationStatePersistenceStrategy(Request request, org.hibernate.Session hibernateSession)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tget(java.lang.Class<T> ssoClass, ApplicationStateCreator<T> creator)Gets the SSO from the domain.<T> voidset(java.lang.Class<T> ssoClass, T sso)Stores a new SSO, possibly replacing the existing one.protected <T> TtransformPersistedValue(java.lang.Object value)- 
Methods inherited from class org.apache.tapestry5.internal.services.SessionApplicationStatePersistenceStrategybuildKey, exists, getIfExists, getOrCreate, getSession
 
- 
 
- 
- 
- 
Constructor Detail- 
EntityApplicationStatePersistenceStrategypublic EntityApplicationStatePersistenceStrategy(Request request, org.hibernate.Session hibernateSession) 
 
- 
 - 
Method Detail- 
transformPersistedValueprotected <T> T transformPersistedValue(java.lang.Object value) - Overrides:
- transformPersistedValuein class- SessionApplicationStatePersistenceStrategy
 
 - 
getpublic <T> T get(java.lang.Class<T> ssoClass, ApplicationStateCreator<T> creator) Description copied from interface:ApplicationStatePersistenceStrategyGets the SSO from the domain. If the SSO does not already exist, it is created and stored, then returned.- Specified by:
- getin interface- ApplicationStatePersistenceStrategy
- Overrides:
- getin class- SessionApplicationStatePersistenceStrategy
 
 - 
setpublic <T> void set(java.lang.Class<T> ssoClass, T sso) Description copied from interface:ApplicationStatePersistenceStrategyStores a new SSO, possibly replacing the existing one.- Specified by:
- setin interface- ApplicationStatePersistenceStrategy
- Overrides:
- setin class- SessionApplicationStatePersistenceStrategy
- sso- instance to store, or null to delete existing
 
 
- 
 
-