1 19 20 package org.apache.cayenne; 21 22 import java.io.Serializable ; 23 24 33 public abstract class Fault implements Serializable { 36 37 protected static Fault toOneFault; 38 protected static Fault toManyFault; 39 40 public static Fault getToOneFault() { 41 return toOneFault; 42 } 43 44 public static Fault getToManyFault() { 45 return toManyFault; 46 } 47 48 protected Fault() { 49 } 50 51 54 public abstract Object resolveFault(Persistent sourceObject, String relationshipName); 55 } 56 | Popular Tags |