org.tynamo.jpa.internal
Class EntityPersistentFieldStrategy

java.lang.Object
  extended by org.apache.tapestry5.internal.services.AbstractSessionPersistentFieldStrategy
      extended by org.tynamo.jpa.internal.EntityPersistentFieldStrategy
All Implemented Interfaces:
org.apache.tapestry5.services.PersistentFieldStrategy

public class EntityPersistentFieldStrategy
extends org.apache.tapestry5.internal.services.AbstractSessionPersistentFieldStrategy

Persists Hibernate entities by storing their id in the session.

See Also:
PersistedEntity

Constructor Summary
EntityPersistentFieldStrategy(javax.persistence.EntityManager entityManager, org.apache.tapestry5.services.Request request)
           
 
Method Summary
protected  Object convertApplicationValueToPersisted(Object newValue)
           
protected  Object convertPersistedToApplicationValue(Object persistedValue)
           
 
Methods inherited from class org.apache.tapestry5.internal.services.AbstractSessionPersistentFieldStrategy
didReadChange, discardChanges, gatherFieldChanges, postChange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityPersistentFieldStrategy

public EntityPersistentFieldStrategy(javax.persistence.EntityManager entityManager,
                                     org.apache.tapestry5.services.Request request)
Method Detail

convertApplicationValueToPersisted

protected Object convertApplicationValueToPersisted(Object newValue)
Overrides:
convertApplicationValueToPersisted in class org.apache.tapestry5.internal.services.AbstractSessionPersistentFieldStrategy

convertPersistedToApplicationValue

protected Object convertPersistedToApplicationValue(Object persistedValue)
Overrides:
convertPersistedToApplicationValue in class org.apache.tapestry5.internal.services.AbstractSessionPersistentFieldStrategy


Copyright © 2009-2010. All Rights Reserved.