1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package javax.jdo.listener;
24
25 /**
26 * This interface is implemented by listeners to be notified of
27 * store events.
28 * @version 2.0
29 * @since 2.0
30 */
31 public interface StoreLifecycleListener
32 extends InstanceLifecycleListener {
33
34 /**
35 * Invoked whenever a persistent instance is stored, for example during
36 * {@link javax.jdo.PersistenceManager#flush} or
37 * {@link javax.jdo.Transaction#commit}. It is called before the
38 * method {@link StoreCallback#jdoPreStore} is invoked.
39 * @param event the store event.
40 * @since 2.0
41 */
42 void preStore (InstanceLifecycleEvent event);
43
44 /**
45 * Invoked whenever a persistent instance is stored, for example during
46 * {@link javax.jdo.PersistenceManager#flush} or
47 * {@link javax.jdo.Transaction#commit}. It is called after the
48 * field values have been stored.
49 * @param event the store event.
50 * @since 2.0
51 */
52 void postStore (InstanceLifecycleEvent event);
53 }