|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry5.internal.services.AbstractSessionPersistentFieldStrategy
org.apache.tapestry5.internal.hibernate.EntityPersistentFieldStrategy
public class EntityPersistentFieldStrategy
Persists Hibernate entities by storing their id in the session.
PersistedEntity
Constructor Summary | |
---|---|
EntityPersistentFieldStrategy(org.hibernate.Session session,
Request request)
|
Method Summary | |
---|---|
protected java.lang.Object |
convertApplicationValueToPersisted(java.lang.Object newValue)
Hook that allows a value to be converted as it is written to the session. |
protected java.lang.Object |
convertPersistedToApplicationValue(java.lang.Object persistedValue)
Converts a persisted value stored in the session back into an application value. |
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 |
---|
public EntityPersistentFieldStrategy(org.hibernate.Session session, Request request)
Method Detail |
---|
protected java.lang.Object convertApplicationValueToPersisted(java.lang.Object newValue)
AbstractSessionPersistentFieldStrategy
convertApplicationValueToPersisted
in class AbstractSessionPersistentFieldStrategy
newValue
- non-null value
AbstractSessionPersistentFieldStrategy.convertPersistedToApplicationValue(Object)
protected java.lang.Object convertPersistedToApplicationValue(java.lang.Object persistedValue)
AbstractSessionPersistentFieldStrategy
convertPersistedToApplicationValue
in class AbstractSessionPersistentFieldStrategy
persistedValue
- non-null persisted value
AbstractSessionPersistentFieldStrategy.convertPersistedToApplicationValue(Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |