Class AbstractSetStore<E>
java.lang.Object
org.datanucleus.store.rdbms.scostore.BaseContainerStore
org.datanucleus.store.rdbms.scostore.ElementContainerStore
org.datanucleus.store.rdbms.scostore.AbstractCollectionStore<E>
org.datanucleus.store.rdbms.scostore.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.
-
Field Summary
Fields inherited from class org.datanucleus.store.rdbms.scostore.AbstractCollectionStore
containsStmtFields inherited from class org.datanucleus.store.rdbms.scostore.ElementContainerStore
addStmt, clearStmt, containerTable, elementCmd, elementInfo, elementIsPersistentInterface, elementMapping, elementsAreEmbedded, elementsAreSerialised, elementType, iterateUsingDiscriminator, orderMapping, relationDiscriminatorMapping, relationDiscriminatorValue, removeStmt, sizeStmtFields inherited from class org.datanucleus.store.rdbms.scostore.BaseContainerStore
allowNulls, clr, dba, ownerMapping, ownerMemberMetaData, relationType, storeMgr -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSetStore(RDBMSStoreManager storeMgr, org.datanucleus.ClassLoaderResolver clr) Constructor. -
Method Summary
Methods inherited from class org.datanucleus.store.rdbms.scostore.AbstractCollectionStore
contains, getRemoveStmt, getUpdateEmbeddedElementStmt, update, updateEmbeddedElementMethods inherited from class org.datanucleus.store.rdbms.scostore.ElementContainerStore
clear, getAddStmtForJoinTable, getClearStmt, getComponentInfoForElement, getContainerTable, getElementClassMetaData, getElementMapping, getRelationDiscriminatorMapping, getRelationDiscriminatorValue, getSize, getSizeStmt, hasOrderMapping, invalidateAddStmt, isElementsAreEmbedded, isElementsAreSerialised, size, usingJoinTable, validateElementForReading, validateElementForWriting, validateElementTypeMethods inherited from class org.datanucleus.store.rdbms.scostore.BaseContainerStore
allowsBatching, getComponentInformationForClass, getDatastoreAdapter, getOwnerMapping, getOwnerMemberMetaData, getRelationType, getStateManagerForEmbeddedPCObject, getStoreManager, isEmbeddedMapping, setOwnerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.datanucleus.store.types.scostore.CollectionStore
add, addAll, clear, contains, hasOrderMapping, removeAll, size, update, updateEmbeddedElementMethods inherited from interface org.datanucleus.store.types.scostore.Store
getOwnerMemberMetaData, getStoreManager
-
Constructor Details
-
AbstractSetStore
Constructor.- Parameters:
storeMgr- Manager for the storeclr- The ClassLoaderResolver
-
-
Method Details
-
iterator
Description copied from class:ElementContainerStoreAccessor for an iterator through the container elements.- Specified by:
iteratorin interfaceorg.datanucleus.store.types.scostore.CollectionStore<E>- Specified by:
iteratorin classElementContainerStore- 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:
removein interfaceorg.datanucleus.store.types.scostore.CollectionStore<E>
-