|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.record.PageRecorderImpl
public class PageRecorderImpl
| Constructor Summary | |
|---|---|
PageRecorderImpl(java.lang.String pageName,
IRequestCycle requestCycle,
PropertyPersistenceStrategySource strategySource,
org.apache.hivemind.ErrorLog log)
|
|
| Method Summary | |
|---|---|
void |
commit()
Persists all changes that have been accumulated. |
java.util.Collection |
getChanges()
|
void |
observeChange(ObservedChangeEvent event)
Sent when the observed object changes a property. |
void |
rollback(IPage page)
Rolls back the page to the currently persisted state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PageRecorderImpl(java.lang.String pageName,
IRequestCycle requestCycle,
PropertyPersistenceStrategySource strategySource,
org.apache.hivemind.ErrorLog log)
| Method Detail |
|---|
public void commit()
IPageRecorderAfter commiting, a page recorder automatically locks itself.
commit in interface IPageRecorderpublic java.util.Collection getChanges()
public void rollback(IPage page)
IPageRecorder
A page recorder can only rollback changes to properties which have changed at some point.
This can cause some minor problems, addressed by
PageDetachListener.pageDetached(org.apache.tapestry.event.PageEvent).
rollback in interface IPageRecorderpublic void observeChange(ObservedChangeEvent event)
ChangeObserver
observeChange in interface ChangeObserver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||