Package org.apache.cayenne.util
Class RelationshipFault<E>
java.lang.Object
org.apache.cayenne.util.RelationshipFault<E>
- Direct Known Subclasses:
PersistentObjectHolder
,PersistentObjectList
,PersistentObjectMap
,PersistentObjectSet
An abstract superclass of lazily faulted to-one and to-many relationships.
- Since:
- 1.2
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
RelationshipFault
(Persistent relationshipOwner, String relationshipName) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected boolean
protected abstract void
mergeLocalChanges
(List<E> resolved) Executes a query that returns related objects.protected void
updateReverse
(List<E> resolved)
-
Field Details
-
relationshipOwner
-
relationshipName
-
-
Constructor Details
-
RelationshipFault
protected RelationshipFault() -
RelationshipFault
-
-
Method Details
-
getRelationshipName
-
getRelationshipOwner
-
isTransientParent
protected boolean isTransientParent() -
isUncommittedParent
protected boolean isUncommittedParent() -
mergeLocalChanges
-
resolveFromDB
Executes a query that returns related objects. Subclasses would invoke this method whenever they need to resolve a fault. -
updateReverse
-