1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package net.wotonomy.control;
20
21 /***
22 * EOFaulting defines the requirements for objects that
23 * can be faulted by an EOFaultManager.
24 *
25 * @author michael@mpowers.net
26 * @author $Author: cgruber $
27 * @version $Revision: 893 $
28 */
29 public interface EOFaulting
30 {
31 /***
32 * Called by EOFaultHandler to prepare the object to be turned into a fault.
33 */
34 void clearFault();
35
36 /***
37 * Returns this object's EOFaultHandler.
38 */
39 EOFaultHandler faultHandler();
40
41 /***
42 * Returns whether this object is currently a fault.
43 * Returns true if this object has not yet retrieved any values.
44 */
45 boolean isFault();
46
47 /***
48 * Turns this object into a fault using the specified fault handler.
49 */
50 void turnIntoFault( EOFaultHandler aFaultHandler );
51
52 /***
53 * Called to completely fire the fault, reading all values.
54 * This method may be implemented to call willRead(null).
55 */
56 void willRead();
57
58 /***
59 * Called to fire the fault for the specified key.
60 * The fault manager is required to populate the specified key
61 * with a value, and may populate any or all of the other values
62 * on this object. A null key will populate all values on the object.
63 * NOTE: This method is not part of the specification.
64 */
65 void willRead( String aKey );
66 }
67
68
69
70
71
72
73
74
75
76
77
78
79