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
Representation of a wrapper for a mutable Collection SCO type supported.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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 collectionMethods 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 Details
-
updateEmbeddedElement
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
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
-