org.datanucleus.store.scostore
Interface ArrayStore

All Superinterfaces:
Store

public interface ArrayStore
extends Store

Interface representation of the backing store for an array.


Method Summary
 void clear(StateManager ownerSM)
          Method to clear the array.
 java.util.List getArray(StateManager ownerSM)
          Method to retrieve the elements of the array.
 java.lang.String getElementType()
          Accessor for the element type in the collection.
 java.util.Iterator iterator(StateManager sm)
          Accessor for an iterator for the array.
 boolean set(StateManager ownerSM, java.lang.Object array)
          Method to set the elements in the array.
 int size(StateManager sm)
          Accessor for the size of the array.
 
Methods inherited from interface org.datanucleus.store.scostore.Store
getStoreManager
 

Method Detail

getElementType

java.lang.String getElementType()
Accessor for the element type in the collection.

Returns:
The element type.

iterator

java.util.Iterator iterator(StateManager sm)
Accessor for an iterator for the array.

Parameters:
sm - State Manager for the array.
Returns:
Iterator for the array.

getArray

java.util.List getArray(StateManager ownerSM)
Method to retrieve the elements of the array.

Parameters:
ownerSM - State Manager of the owner
Returns:
The List of elements in the array (in the same order)

size

int size(StateManager sm)
Accessor for the size of the array.

Parameters:
sm - State Manager for the owner.
Returns:
The size of the array.

clear

void clear(StateManager ownerSM)
Method to clear the array.

Parameters:
ownerSM - State Manager for the owner.

set

boolean set(StateManager ownerSM,
            java.lang.Object array)
Method to set the elements in the array.

Parameters:
ownerSM - State Manager for the owner.
array - The array
Returns:
Whether the elements were added ok


Copyright © 2009. All Rights Reserved.