org.datanucleus.store.scostore
Interface ArrayStore

All Superinterfaces:
Store
All Known Implementing Classes:
AbstractArrayStore, FKArrayStore, JoinArrayStore

public interface ArrayStore
extends Store

Interface representation of the backing store for an array.


Method Summary
 void clear(ObjectProvider ownerSM)
          Method to clear the array.
 java.util.List getArray(ObjectProvider 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(ObjectProvider sm)
          Accessor for an iterator for the array.
 boolean set(ObjectProvider ownerSM, java.lang.Object array)
          Method to set the elements in the array.
 int size(ObjectProvider 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(ObjectProvider 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(ObjectProvider 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(ObjectProvider sm)
Accessor for the size of the array.

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

clear

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

Parameters:
ownerSM - State Manager for the owner.

set

boolean set(ObjectProvider 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 © 2011. All Rights Reserved.