Package org.apache.cayenne.util
Class RelationshipFault<E>
java.lang.Object
org.apache.cayenne.util.RelationshipFault<E>
- Direct Known Subclasses:
- PersistentObjectHolder,- PersistentObjectList,- PersistentObjectMap,- PersistentObjectSet
public abstract class RelationshipFault<E> extends Object
An abstract superclass of lazily faulted to-one and to-many relationships.
- Since:
- 1.2
- 
Field SummaryFields Modifier and Type Field Description protected StringrelationshipNameprotected PersistentrelationshipOwner
- 
Constructor SummaryConstructors Modifier Constructor Description protectedRelationshipFault()RelationshipFault(Persistent relationshipOwner, String relationshipName)
- 
Method SummaryModifier and Type Method Description StringgetRelationshipName()PersistentgetRelationshipOwner()protected booleanisTransientParent()protected booleanisUncommittedParent()protected abstract voidmergeLocalChanges(List<E> resolved)protected List<E>resolveFromDB()Executes a query that returns related objects.protected voidupdateReverse(List<E> resolved)
- 
Field Details- 
relationshipOwner
- 
relationshipName
 
- 
- 
Constructor Details- 
RelationshipFaultprotected RelationshipFault()
- 
RelationshipFault
 
- 
- 
Method Details- 
getRelationshipName
- 
getRelationshipOwner
- 
isTransientParentprotected boolean isTransientParent()
- 
isUncommittedParentprotected boolean isUncommittedParent()
- 
mergeLocalChanges
- 
resolveFromDBExecutes a query that returns related objects. Subclasses would invoke this method whenever they need to resolve a fault.
- 
updateReverse
 
-