com.triactive.jdo.store
Interface SetStore

All Superinterfaces:
CollectionStore
All Known Implementing Classes:
com.triactive.jdo.store.AbstractSetStore

public interface SetStore
extends CollectionStore

Implements the backing store for a Set field.

Different implementations of SetStore employ different techniques for modeling the Java concept of a Set in a relational data store. Individual instances of SetStore are responsible for managing the storage for some Java class's Collection or Set field across all instances of that class.

Author:
Mike Martin

Method Summary
 void clearAll(java.util.Collection owners)
          Clears the sets associated with an entire group of objects.
 PersistentSet newSetInstance(StateManager owner)
          Returns a new persistent set representing the set associated with the given object.
 
Methods inherited from interface com.triactive.jdo.store.CollectionStore
allowsNulls, getElementType, isEmbeddedElement, newSubqueryStatement, newSubqueryStatement
 

Method Detail

newSetInstance

public PersistentSet newSetInstance(StateManager owner)
Returns a new persistent set representing the set associated with the given object.

Iterators returned by the persistent set support the remove() method.

Parameters:
owner - The StateManager of the object whose set is to be returned.
Returns:
the new persistent set

clearAll

public void clearAll(java.util.Collection owners)
Clears the sets associated with an entire group of objects.

Parameters:
owners - The StateManagers of all the objects whose set is to be cleared.


Copyright 2001-2007 The TJDO Project All Rights Reserved.