|
||||||||||
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(String pageName,
PropertyPersistenceStrategySource strategySource,
org.apache.hivemind.ErrorLog log)
|
Method Summary | |
---|---|
void |
commit()
Persists all changes that have been accumulated. |
Collection |
getChanges()
|
boolean |
isLocked()
Checks if the current state changes have already been committed. |
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(String pageName, PropertyPersistenceStrategySource strategySource, org.apache.hivemind.ErrorLog log)
Method Detail |
---|
public void commit()
IPageRecorder
After commiting, a page recorder automatically locks itself.
commit
in interface IPageRecorder
public boolean isLocked()
ChangeObserver
isLocked
in interface ChangeObserver
public 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 IPageRecorder
public 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 |