org.apache.tapestry5.internal.hibernate
Class EntityApplicationStatePersistenceStrategy
java.lang.Object
   org.apache.tapestry5.internal.services.SessionApplicationStatePersistenceStrategy
org.apache.tapestry5.internal.services.SessionApplicationStatePersistenceStrategy
       org.apache.tapestry5.internal.hibernate.EntityApplicationStatePersistenceStrategy
org.apache.tapestry5.internal.hibernate.EntityApplicationStatePersistenceStrategy
- All Implemented Interfaces: 
- ApplicationStatePersistenceStrategy
- public class EntityApplicationStatePersistenceStrategy 
- extends SessionApplicationStatePersistenceStrategy
Persists Hibernate entities as SSOs by storing their primary key in the Session.
- See Also:
- PersistedEntity
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
EntityApplicationStatePersistenceStrategy
public EntityApplicationStatePersistenceStrategy(Request request,
                                                 org.hibernate.Session hibernateSession)
get
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:
- getin interface- ApplicationStatePersistenceStrategy
- Overrides:
- getin class- SessionApplicationStatePersistenceStrategy
 
- 
 
set
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:
- setin interface- ApplicationStatePersistenceStrategy
- Overrides:
- setin class- SessionApplicationStatePersistenceStrategy
 
- 
- sso- instance to store, or null to delete existing
 
Copyright © 2003-2012 The Apache Software Foundation.