Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.util
Class RelationshipFault

    java.lang.Object
      org.apache.cayenne.util.RelationshipFault

Direct Known Subclasses:
  PersistentObjectHolder, PersistentObjectList

    public abstract class RelationshipFault

extends java.lang.Object

An abstract superlcass of lazily faulted to-one and to-many relationships.

Since:
  1.2
Author:
  Andrus Adamchik

Field Summary
`protected java.lang.String` | `relationshipName`
`protected Persistent` | `relationshipOwner`

Constructor Summary
`protected` | `RelationshipFault()`
`` | `RelationshipFault(Persistent relationshipOwner, java.lang.String relationshipName)`

Method Summary
`java.lang.String` | `getRelationshipName()`
`Persistent` | `getRelationshipOwner()`
`protected boolean` | `isTransientParent()`
`protected boolean` | `isUncommittedParent()`
`protected java.util.List` | `resolveFromDB()` Executes a query that returns related objects.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### relationshipOwner

    protected Persistent relationshipOwner

### relationshipName

    protected java.lang.String relationshipName

Constructor Detail

### RelationshipFault

    protected RelationshipFault()

### RelationshipFault

    public RelationshipFault(Persistent relationshipOwner,
                             java.lang.String relationshipName)

Method Detail

### getRelationshipName

    public java.lang.String getRelationshipName()

### getRelationshipOwner

    public Persistent getRelationshipOwner()

### isTransientParent

    protected boolean isTransientParent()

### isUncommittedParent

    protected boolean isUncommittedParent()

### resolveFromDB

    protected java.util.List resolveFromDB()

  Executes a query that returns related objects. Subclasses would invoke this method whenever they need to resolve a fault.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2006 Apache.org All Rights Reserved.