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 used to notify instances of attach events.
27 * @version 2.0
28 * @since 2.0
29 */
30 public interface AttachCallback {
31
32 /**
33 * This method is called during the execution of
34 * {@link javax.jdo.PersistenceManager#makePersistent} on the detached
35 * instance before the copy is made.
36 * @since 2.0
37 */
38 public void jdoPreAttach();
39
40 /**
41 * This method is called during the execution of
42 * {@link javax.jdo.PersistenceManager#makePersistent} on the persistent
43 * instance after the copy is made.
44 * @param attached The corresponding (non-attached) instance that was
45 * attached in the call to
46 * {@link javax.jdo.PersistenceManager#makePersistent}.
47 * @since 2.0
48 */
49 public void jdoPostAttach(Object attached);
50 }