public class AutoTrackLifecycleListener extends Object implements StoreLifecycleListener, DeleteLifecycleListener
changed and the
 localRevision properties of persistence-capable
 objects.
 Whenever an object is written to the datastore, said properties are updated, if the appropriate interfaces are implemented by the persistence-capable object.
| Constructor and Description | 
|---|
| AutoTrackLifecycleListener(LocalRepoTransactionImpl transaction) | 
| Modifier and Type | Method and Description | 
|---|---|
| LocalRepoTransactionImpl | getTransaction() | 
| void | onBegin()Notifies this instance about the transaction being begun. | 
| void | onCommit()Notifies this instance about the transaction being committed. | 
| void | onRollback()Notifies this instance about the transaction being rolled back. | 
| void | postDelete(InstanceLifecycleEvent event) | 
| void | postStore(InstanceLifecycleEvent event) | 
| void | preDelete(InstanceLifecycleEvent event) | 
| void | preStore(InstanceLifecycleEvent event) | 
public AutoTrackLifecycleListener(LocalRepoTransactionImpl transaction)
public LocalRepoTransactionImpl getTransaction()
public void preStore(InstanceLifecycleEvent event)
preStore in interface StoreLifecycleListenerpublic void postStore(InstanceLifecycleEvent event)
postStore in interface StoreLifecycleListenerpublic void preDelete(InstanceLifecycleEvent event)
preDelete in interface DeleteLifecycleListenerpublic void postDelete(InstanceLifecycleEvent event)
postDelete in interface DeleteLifecycleListenerpublic void onBegin()
onCommit(), 
onRollback()public void onCommit()
onBegin(), 
onRollback()public void onRollback()
onBegin(), 
onCommit()Copyright © 2013-2014. All Rights Reserved.