SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

com.solarmetric.kodo.runtime
Class FifoStateManagerSet

java.lang.Object
  |
  +--com.solarmetric.kodo.runtime.FifoStateManagerSet
All Implemented Interfaces:
StateManagerSet

public class FifoStateManagerSet
extends Object
implements StateManagerSet

StateManagerSet implementation that returns objects in the order that they were added.

Since:
2.5.0

Constructor Summary
FifoStateManagerSet()
           
 
Method Summary
 void add(StateManagerImpl sm, boolean hard)
          Add a new StateManagerImpl to this set.
 Collection collection()
          Returns an unmodifiable list containing all the StateManagerImpl objects that have been added to this set.
 boolean contains(StateManagerImpl sm)
          Returns true if sm is in this set; otherwise returns false.
 Iterator iterator()
          Returns an iterator containing all the StateManagerImpl objects that have been added to this set.
 void remove(StateManagerImpl sm)
          Remove sm from this set.
 void setPersistenceManager(PersistenceManagerImpl pm)
          Sets the PersistenceManagerImpl associated with this set.
 int size()
          Returns the number of objects in this set.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FifoStateManagerSet

public FifoStateManagerSet()
Method Detail

setPersistenceManager

public void setPersistenceManager(PersistenceManagerImpl pm)
Description copied from interface: StateManagerSet
Sets the PersistenceManagerImpl associated with this set.
Specified by:
setPersistenceManager in interface StateManagerSet

add

public void add(StateManagerImpl sm,
                boolean hard)
Description copied from interface: StateManagerSet
Add a new StateManagerImpl to this set. If hard is true, maintain a hard reference to sm; otherwise, an implementation is free to maintain a soft / weak reference to sm.
Specified by:
add in interface StateManagerSet

contains

public boolean contains(StateManagerImpl sm)
Description copied from interface: StateManagerSet
Returns true if sm is in this set; otherwise returns false.
Specified by:
contains in interface StateManagerSet

size

public int size()
Description copied from interface: StateManagerSet
Returns the number of objects in this set.
Specified by:
size in interface StateManagerSet

remove

public void remove(StateManagerImpl sm)
Description copied from interface: StateManagerSet
Remove sm from this set.
Specified by:
remove in interface StateManagerSet

iterator

public Iterator iterator()
Description copied from interface: StateManagerSet
Returns an iterator containing all the StateManagerImpl objects that have been added to this set. This iterator is in some order determined by the implementation of this method.
Specified by:
iterator in interface StateManagerSet

collection

public Collection collection()
Description copied from interface: StateManagerSet
Returns an unmodifiable list containing all the StateManagerImpl objects that have been added to this set. This list is in some order determined by the implementation of this method.
Specified by:
collection in interface StateManagerSet

SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.