|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CollectionStore
Interface representation of the backing store for a Collection.
| Method Summary | |
|---|---|
boolean |
add(StateManager sm,
java.lang.Object element,
int size)
Method to add an element to the collection. |
boolean |
addAll(StateManager sm,
java.util.Collection elements,
int size)
Method to add a collection of elements to the collection. |
void |
clear(StateManager sm)
Method to clear the collection. |
boolean |
contains(StateManager sm,
java.lang.Object element)
Method to check if an element exists in the collection. |
java.lang.String |
getElementType()
Accessor for the element type in the collection. |
boolean |
hasOrderMapping()
Accessor for whether the store utilises an order mapping. |
java.util.Iterator |
iterator(StateManager sm)
Accessor for an iterator for the collection. |
boolean |
remove(StateManager sm,
java.lang.Object element,
int size,
boolean allowDependentField)
Method to remove an element from the collection. |
boolean |
removeAll(StateManager sm,
java.util.Collection elements,
int size)
Method to remove a collection of elements from the collection. |
int |
size(StateManager sm)
Accessor for the size of the collection. |
boolean |
updateEmbeddedElement(StateManager sm,
java.lang.Object element,
int fieldNumber,
java.lang.Object value)
Method to update en embedded element in the collection. |
| Methods inherited from interface org.datanucleus.store.scostore.Store |
|---|
getStoreManager |
| Method Detail |
|---|
java.lang.String getElementType()
boolean hasOrderMapping()
boolean updateEmbeddedElement(StateManager sm,
java.lang.Object element,
int fieldNumber,
java.lang.Object value)
sm - State Manager of the ownerelement - The elementfieldNumber - Field to update in the elementvalue - The new value for the field
java.util.Iterator iterator(StateManager sm)
sm - State Manager for the collection.
int size(StateManager sm)
sm - State Manager for the collection.
boolean contains(StateManager sm,
java.lang.Object element)
sm - State Manager for the collection.element - Element to check
boolean add(StateManager sm,
java.lang.Object element,
int size)
sm - State Manager for the collection.element - Element to addsize - Current size of the collection if known. -1 if not known
boolean addAll(StateManager sm,
java.util.Collection elements,
int size)
sm - State Manager for the collection.elements - Elements to addsize - Current size of collection (if known). -1 if not known
boolean remove(StateManager sm,
java.lang.Object element,
int size,
boolean allowDependentField)
sm - State Manager for the collection.element - Element to removesize - Current size of collection if known. -1 if not knownallowDependentField - Whether to allow any cascading delete actions to be fired from this removal
boolean removeAll(StateManager sm,
java.util.Collection elements,
int size)
sm - State Manager for the collection.elements - Element to removesize - Current size of collection if known. -1 if not known
void clear(StateManager sm)
sm - State Manager for the collection.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||