Package org.apache.cayenne.access
Class ToManySet<E>
java.lang.Object
org.apache.cayenne.util.RelationshipFault<E>
org.apache.cayenne.util.PersistentObjectSet<E>
org.apache.cayenne.access.ToManySet<E>
- All Implemented Interfaces:
Serializable
,Iterable<E>
,Collection<E>
,Set<E>
,PersistentObjectCollection<E>
,ValueHolder<Object>
- See Also:
-
Field Summary
Fields inherited from class org.apache.cayenne.util.PersistentObjectSet
addedToUnresolved, objectSet, removedFromUnresolved
Fields inherited from class org.apache.cayenne.util.RelationshipFault
relationshipName, relationshipOwner
-
Constructor Summary
ModifierConstructorDescriptionprotected
ToManySet
(Persistent relationshipOwner, String relationshipName) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
postprocessAdd
(E addedObject) protected void
postprocessAdd
(Collection<? extends E> collection) protected void
postprocessRemove
(E removedObject) protected void
postprocessRemove
(Collection<? extends E> collection) protected boolean
shouldAddToRemovedFromUnresolvedSet
(E object) protected void
updateReverse
(List<E> resolved) Methods inherited from class org.apache.cayenne.util.PersistentObjectSet
add, addAll, addDirectly, clear, contains, containsAll, equals, getValue, getValueDirectly, hashCode, invalidate, isEmpty, isFault, iterator, mergeLocalChanges, remove, removeAll, removeDirectly, resolvedObjectSet, retainAll, setObjectSet, setValue, setValueDirectly, size, toArray, toArray, toString
Methods inherited from class org.apache.cayenne.util.RelationshipFault
getRelationshipName, getRelationshipOwner, isTransientParent, isUncommittedParent, resolveFromDB
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
spliterator
-
Constructor Details
-
ToManySet
-
-
Method Details
-
shouldAddToRemovedFromUnresolvedSet
- Overrides:
shouldAddToRemovedFromUnresolvedSet
in classPersistentObjectSet<E>
-
postprocessAdd
- Overrides:
postprocessAdd
in classPersistentObjectSet<E>
-
postprocessRemove
- Overrides:
postprocessRemove
in classPersistentObjectSet<E>
-
postprocessAdd
- Overrides:
postprocessAdd
in classPersistentObjectSet<E>
-
postprocessRemove
- Overrides:
postprocessRemove
in classPersistentObjectSet<E>
-
updateReverse
- Overrides:
updateReverse
in classRelationshipFault<E>
-