org.datanucleus.sco
Interface SCOCollection

All Superinterfaces:
SCO, SCOContainer
All Known Subinterfaces:
SCOList
All Known Implementing Classes:
ArrayList, ArrayList, Collection, Collection, HashSet, HashSet, LinkedHashSet, LinkedHashSet, LinkedList, LinkedList, List, List, PriorityQueue, PriorityQueue, Queue, Queue, Set, Set, SortedSet, SortedSet, Stack, Stack, TreeSet, TreeSet, Vector, Vector

public interface SCOCollection
extends SCOContainer

Representation of a wrapper for a mutable Collection SCO type supported.


Method Summary
 boolean remove(java.lang.Object element, boolean allowCascadeDelete)
          Method to remove an element from the collection, and observe the flag for whether to allow cascade delete.
 void updateEmbeddedElement(java.lang.Object element, int fieldNumber, java.lang.Object value)
          Method to update an embedded element stored in the collection
 
Methods inherited from interface org.datanucleus.sco.SCOContainer
flush, isLoaded, load
 
Methods inherited from interface org.datanucleus.sco.SCO
attachCopy, clone, detachCopy, getFieldName, getOwner, getValue, initialise, initialise, unsetOwner
 

Method Detail

updateEmbeddedElement

void updateEmbeddedElement(java.lang.Object element,
                           int fieldNumber,
                           java.lang.Object value)
Method to update an embedded element stored in the collection

Parameters:
element - The element
fieldNumber - Number of field in the element
value - th enew value for this field

remove

boolean remove(java.lang.Object element,
               boolean allowCascadeDelete)
Method to remove an element from the collection, and observe the flag for whether to allow cascade delete.

Parameters:
element - The element
allowCascadeDelete - Whether to allow cascade delete
Returns:
Whether the element was removed


Copyright © 2010. All Rights Reserved.