org.apache.cayenne.access
Class ToManyList
java.lang.Object
   org.apache.cayenne.util.RelationshipFault
org.apache.cayenne.util.RelationshipFault
       org.apache.cayenne.util.PersistentObjectList
org.apache.cayenne.util.PersistentObjectList
           org.apache.cayenne.access.ToManyList
org.apache.cayenne.access.ToManyList
- All Implemented Interfaces: 
- Serializable, Iterable, Collection, List, ValueHolder
- public class ToManyList 
- extends PersistentObjectList- implements Serializable
A list that holds objects for to-many relationships. All operations, except for
 resolving the list from DB, are not synchronized. The safest way to implement custom
 synchronization is to synchronize on parent ObjectStore.
- See Also:
- Serialized Form
 
 
 
 
 
| Methods inherited from class org.apache.cayenne.util.PersistentObjectList | 
| add, add, addAll, addAll, addLocal, clear, clearLocalChanges, contains, containsAll, equals, get, getValue, getValueDirectly, indexOf, invalidate, isEmpty, isFault, iterator, lastIndexOf, listIterator, listIterator, mergeLocalChanges, remove, remove, removeAll, removeLocal, resolvedObjectList, retainAll, set, setObjectList, setValue, setValueDirectly, size, subList, toArray, toArray | 
 
 
 
ToManyList
public ToManyList(Persistent source,
                  String relationship)
- Creates ToManyList.
 
- Since:
- 1.1
 
getRelationship
@Deprecated
public String getRelationship()
- Deprecated. use RelationshipFault.getRelationshipName()method
 
- Returns a name of relationship for this list.
 
- 
 
- 
- Since:
- 1.1
 
hashCode
public int hashCode()
- 
- Specified by:
- hashCodein interface- Collection
- Specified by:
- hashCodein interface- List
- Overrides:
- hashCodein class- PersistentObjectList
 
- 
 
shouldAddToRemovedFromUnresolvedList
protected boolean shouldAddToRemovedFromUnresolvedList(Object object)
- 
- Overrides:
- shouldAddToRemovedFromUnresolvedListin class- PersistentObjectList
 
- 
- Returns:
- whether object should be added to PersistentObjectList.removedFromUnresolvedduring removal
 
toString
public String toString()
- 
- Overrides:
- toStringin class- PersistentObjectList
 
- 
 
postprocessAdd
protected void postprocessAdd(Collection collection)
- 
- Overrides:
- postprocessAddin class- PersistentObjectList
 
- 
 
postprocessRemove
protected void postprocessRemove(Collection collection)
- 
- Overrides:
- postprocessRemovein class- PersistentObjectList
 
- 
 
postprocessAdd
protected void postprocessAdd(Object addedObject)
- 
- Overrides:
- postprocessAddin class- PersistentObjectList
 
- 
 
postprocessRemove
protected void postprocessRemove(Object removedObject)
- 
- Overrides:
- postprocessRemovein class- PersistentObjectList
 
- 
 
updateReverse
protected void updateReverse(List resolved)
- 
- Overrides:
- updateReversein class- RelationshipFault
 
- 
 
Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.