org.apache.cayenne
Class Fault
java.lang.Object
org.apache.cayenne.Fault
- All Implemented Interfaces:
- java.io.Serializable
public abstract class Fault
- extends java.lang.Object
- implements java.io.Serializable
Represents a placeholder for an unresolved relationship from a source object. Fault is
resolved via resolveFault(Persistent, String)
. Depending on the type of fault
it is resolved differently. Each type of fault is a singleton that can be obtained via
corresponding static method.
- Since:
- 1.1
- Author:
- Andrei Adamchik
- See Also:
- Serialized Form
Constructor Summary |
protected |
Fault()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
toOneFault
protected static Fault toOneFault
toManyFault
protected static Fault toManyFault
Fault
protected Fault()
getToOneFault
public static Fault getToOneFault()
getToManyFault
public static Fault getToManyFault()
resolveFault
public abstract java.lang.Object resolveFault(Persistent sourceObject,
java.lang.String relationshipName)
- Returns an object for a given source object and relationship.
Copyright © 2001-2006 Apache.org All Rights Reserved.