Class AbstractSetStore<E>

All Implemented Interfaces:
org.datanucleus.store.types.scostore.CollectionStore<E>, org.datanucleus.store.types.scostore.SetStore<E>, org.datanucleus.store.types.scostore.Store
Direct Known Subclasses:
FKSetStore, JoinSetStore, MapKeySetStore

public abstract class AbstractSetStore<E> extends AbstractCollectionStore<E> implements org.datanucleus.store.types.scostore.SetStore<E>
Abstract representation of the backing store for a Set/Collection. Can be used for a join table set, or a map key set.
  • Constructor Details

    • AbstractSetStore

      protected AbstractSetStore(RDBMSStoreManager storeMgr, org.datanucleus.ClassLoaderResolver clr)
      Constructor.
      Parameters:
      storeMgr - Manager for the store
      clr - The ClassLoaderResolver
  • Method Details

    • iterator

      public abstract Iterator<E> iterator(org.datanucleus.state.DNStateManager sm)
      Description copied from class: ElementContainerStore
      Accessor for an iterator through the container elements.
      Specified by:
      iterator in interface org.datanucleus.store.types.scostore.CollectionStore<E>
      Specified by:
      iterator in class ElementContainerStore
      Parameters:
      sm - StateManager for the container.
      Returns:
      The Iterator
    • remove

      public boolean remove(org.datanucleus.state.DNStateManager sm, Object element, int size, boolean allowDependentField)
      Specified by:
      remove in interface org.datanucleus.store.types.scostore.CollectionStore<E>