Package org.datanucleus.store.types
Interface SCOCollection<T,E>
-
- Type Parameters:
E
- Element type of the collection
- All Superinterfaces:
SCO<T>
,SCOContainer<T>
- All Known Subinterfaces:
SCOList<T,E>
- 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<T,E> extends SCOContainer<T>
Representation of a wrapper for a mutable Collection SCO type supported.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
remove(E element, boolean allowCascadeDelete)
Method to remove an element from the collection, and observe the flag for whether to allow cascade delete.void
updateEmbeddedElement(E element, int fieldNumber, Object value, boolean makeDirty)
Method to update an embedded element stored in the collection-
Methods inherited from interface org.datanucleus.store.types.SCO
attachCopy, clone, detachCopy, getFieldName, getOwner, getValue, initialise, initialise, initialise, unsetOwner
-
Methods inherited from interface org.datanucleus.store.types.SCOContainer
isLoaded, load, setValue
-
-
-
-
Method Detail
-
updateEmbeddedElement
void updateEmbeddedElement(E element, int fieldNumber, Object value, boolean makeDirty)
Method to update an embedded element stored in the collection- Parameters:
element
- The elementfieldNumber
- Number of field in the elementvalue
- the new value for this fieldmakeDirty
- Whether to make the SCO field dirty.
-
remove
boolean remove(E element, boolean allowCascadeDelete)
Method to remove an element from the collection, and observe the flag for whether to allow cascade delete.- Parameters:
element
- The elementallowCascadeDelete
- Whether to allow cascade delete- Returns:
- Whether the element was removed
-
-