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 * delete events.
28 * @version 2.0
29 * @since 2.0
30 */
31 public interface DeleteLifecycleListener
32 extends InstanceLifecycleListener {
33
34 /**
35 * Invoked whenever a persistent instance is deleted, for example
36 * during {@link javax.jdo.PersistenceManager#deletePersistent}.
37 * Access to field values within this call are permitted.
38 * <P>This method is called before the instance callback
39 * {@link DeleteCallback#jdoPreDelete}.
40 * @param event the delete event.
41 * @since 2.0
42 */
43 void preDelete (InstanceLifecycleEvent event);
44
45 /**
46 * Invoked whenever a persistent instance is deleted, for example
47 * during {@link javax.jdo.PersistenceManager#deletePersistent}.
48 * <P>This method is called after the instance transitions
49 * to persistent-deleted. Access to field values is not permitted.
50 * @param event the delete event.
51 * @since 2.0
52 */
53 void postDelete (InstanceLifecycleEvent event);
54 }