Interface ArrayStore<E>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear(DNStateManager sm)
Method to clear the array.List<E>
getArray(DNStateManager sm)
Method to retrieve the elements of the array.Iterator<E>
iterator(DNStateManager sm)
Accessor for an iterator for the array.boolean
set(DNStateManager sm, Object array)
Method to set the elements in the array.int
size(DNStateManager sm)
Accessor for the size of the array.-
Methods inherited from interface org.datanucleus.store.types.scostore.Store
getOwnerMemberMetaData, getStoreManager
-
-
-
-
Method Detail
-
iterator
Iterator<E> iterator(DNStateManager sm)
Accessor for an iterator for the array.- Parameters:
sm
- StateManager for the owner of the array.- Returns:
- Iterator for the array.
-
getArray
List<E> getArray(DNStateManager sm)
Method to retrieve the elements of the array.- Parameters:
sm
- StateManager for the owner of the array- Returns:
- The List of elements in the array (in the same order)
-
size
int size(DNStateManager sm)
Accessor for the size of the array.- Parameters:
sm
- StateManager for the owner of the array.- Returns:
- The size of the array.
-
clear
void clear(DNStateManager sm)
Method to clear the array.- Parameters:
sm
- StateManager for the owner of the array.
-
set
boolean set(DNStateManager sm, Object array)
Method to set the elements in the array.- Parameters:
sm
- StateManager for the owner of the array.array
- The array- Returns:
- Whether the elements were added ok
-
-