org.apache.cayenne

## Class Fault

- java.lang.Object
- - org.apache.cayenne.Fault

- All Implemented Interfaces:
    Serializable
  Direct Known Subclasses:
    AttributeFault, ToManyListFault, ToManyMapFault, ToManySetFault, ToOneFault

      public abstract class Fault
      extends Object
      implements 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
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `Fault()`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract Object` | `resolveFault(Persistent sourceObject, String relationshipName)` Returns an object for a given source object and relationship.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Fault

          protected Fault()

  - ### Method Detail

    - #### resolveFault

          public abstract Object resolveFault(Persistent sourceObject,
                                              String relationshipName)

      Returns an object for a given source object and relationship.

Copyright © 2001–2021 Apache Cayenne. All rights reserved.