org.datanucleus.store.mapped.scostore
Class AbstractCollectionStore
java.lang.Object
org.datanucleus.store.mapped.scostore.BaseContainerStore
org.datanucleus.store.mapped.scostore.ElementContainerStore
org.datanucleus.store.mapped.scostore.AbstractCollectionStore
- All Implemented Interfaces:
- CollectionStore, Store
- Direct Known Subclasses:
- AbstractListStore, AbstractSetStore
public abstract class AbstractCollectionStore
- extends ElementContainerStore
- implements CollectionStore
Abstract representation of a store of a Collection.
Contains all common parts of storing Sets and Lists.
| Fields inherited from class org.datanucleus.store.mapped.scostore.ElementContainerStore |
clr, containerTable, elementInfo, elementIsPersistentInterface, elementMapping, elementsAreEmbedded, elementsAreSerialised, elementType, emd, iterateUsingDiscriminator, orderMapping, relationDiscriminatorMapping, relationDiscriminatorValue, specialization |
|
Method Summary |
boolean |
contains(ObjectProvider sm,
java.lang.Object element)
Method to verify if the association owner vs elements contains
a specific element in the association |
void |
update(ObjectProvider sm,
java.util.Collection coll)
Method to update the collection to be the supplied collection of elements. |
boolean |
updateEmbeddedElement(ObjectProvider sm,
java.lang.Object element,
int fieldNumber,
java.lang.Object value)
Method to update a field of an embedded element. |
| Methods inherited from class org.datanucleus.store.mapped.scostore.ElementContainerStore |
clear, getContainerTable, getElementInfo, getElementInformationForClass, getElementMapping, getElementType, getEmd, getOrderMapping, getRelationDiscriminatorMapping, getRelationDiscriminatorValue, hasOrderMapping, isElementsAreEmbedded, isElementsAreSerialised, iterator, size, validateElementForReading, validateElementForWriting, validateElementType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCollectionStore
protected AbstractCollectionStore(StoreManager storeMgr,
ClassLoaderResolver clr,
AbstractCollectionStoreSpecialization abstractCollectionStoreSpecialization)
- Constructor.
- Parameters:
storeMgr - Manager for the storeclr - ClassLoader resolver
updateEmbeddedElement
public boolean updateEmbeddedElement(ObjectProvider sm,
java.lang.Object element,
int fieldNumber,
java.lang.Object value)
- Method to update a field of an embedded element.
- Specified by:
updateEmbeddedElement in interface CollectionStore
- Parameters:
sm - State Manager of the ownerelement - The element to updatefieldNumber - The number of the field to updatevalue - The value
- Returns:
- true if the datastore was updated
update
public void update(ObjectProvider sm,
java.util.Collection coll)
- Method to update the collection to be the supplied collection of elements.
- Specified by:
update in interface CollectionStore
- Parameters:
sm - StateManager of the objectcoll - The collection to use
contains
public boolean contains(ObjectProvider sm,
java.lang.Object element)
- Method to verify if the association owner vs elements contains
a specific element in the association
- Specified by:
contains in interface CollectionStore
- Parameters:
sm - The StateManagerelement - The element
- Returns:
- Whether it contains the element
Copyright © 2011. All Rights Reserved.