Interface ArrayStore<E>
- Type Parameters:
E
- Element type for this array
- All Superinterfaces:
Store
Interface representation of the backing store for an array.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear
(DNStateManager sm) Method to clear the array.Method to retrieve the elements of the array.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 Details
-
iterator
Accessor for an iterator for the array.- Parameters:
sm
- StateManager for the owner of the array.- Returns:
- Iterator for the array.
-
getArray
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
Accessor for the size of the array.- Parameters:
sm
- StateManager for the owner of the array.- Returns:
- The size of the array.
-
clear
Method to clear the array.- Parameters:
sm
- StateManager for the owner of the array.
-
set
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
-