org.datanucleus.store.mapped.scostore
Interface AbstractCollectionStoreSpecialization

All Superinterfaces:
ElementContainerStoreSpecialization
All Known Subinterfaces:
AbstractArrayStoreSpecialization, AbstractListStoreSpecialization, AbstractSetStoreSpecialization, FKArrayStoreSpecialization, FKListStoreSpecialization, JoinArrayStoreSpecialization, JoinListStoreSpecialization

public interface AbstractCollectionStoreSpecialization
extends ElementContainerStoreSpecialization

Specialization interface for AbstractCollectionStore. AbstractCollectionStore delegates to instances of this interface for behavior that is tied to a specific datastore implementation.


Method Summary
 boolean contains(StateManager sm, java.lang.Object element, AbstractCollectionStore acs)
           
 int[] internalRemove(StateManager ownerSM, ManagedConnection conn, boolean batched, java.lang.Object element, boolean executeNow, AbstractCollectionStore acs)
          Method to process a "remove" statement
 boolean updateEmbeddedElement(StateManager sm, java.lang.Object element, int fieldNumber, java.lang.Object value, JavaTypeMapping fieldMapping, ElementContainerStore ecs)
           
 
Methods inherited from interface org.datanucleus.store.mapped.scostore.ElementContainerStoreSpecialization
executeClear, getSize
 

Method Detail

updateEmbeddedElement

boolean updateEmbeddedElement(StateManager sm,
                              java.lang.Object element,
                              int fieldNumber,
                              java.lang.Object value,
                              JavaTypeMapping fieldMapping,
                              ElementContainerStore ecs)
See Also:
AbstractCollectionStore.updateEmbeddedElement(org.datanucleus.StateManager, java.lang.Object, int, java.lang.Object)

contains

boolean contains(StateManager sm,
                 java.lang.Object element,
                 AbstractCollectionStore acs)
See Also:
AbstractCollectionStore.contains(org.datanucleus.StateManager, java.lang.Object)

internalRemove

int[] internalRemove(StateManager ownerSM,
                     ManagedConnection conn,
                     boolean batched,
                     java.lang.Object element,
                     boolean executeNow,
                     AbstractCollectionStore acs)
                     throws MappedDatastoreException
Method to process a "remove" statement

Parameters:
ownerSM - StateManager for the owner
conn - The connection
batched - Whether we are batching it
element - The element
executeNow - Whether to execute the statement rather than allow batching til later
acs - The abstract collection store
Returns:
Number of records changed (0 if batch since nothing yet changed)
Throws:
MappedDatastoreException - Wraps any exceptions thrown by the underlying datastore.


Copyright © 2010. All Rights Reserved.