org.datanucleus.store.rdbms.scostore
Class RDBMSFKArrayStore

java.lang.Object
  extended by org.datanucleus.store.mapped.scostore.BaseContainerStore
      extended by org.datanucleus.store.mapped.scostore.ElementContainerStore
          extended by org.datanucleus.store.mapped.scostore.AbstractArrayStore
              extended by org.datanucleus.store.mapped.scostore.FKArrayStore
                  extended by org.datanucleus.store.rdbms.scostore.RDBMSFKArrayStore
All Implemented Interfaces:
org.datanucleus.store.mapped.expression.ArrayStoreQueryable, org.datanucleus.store.scostore.ArrayStore, org.datanucleus.store.scostore.Store

public class RDBMSFKArrayStore
extends org.datanucleus.store.mapped.scostore.FKArrayStore

RDBMS-specific implementation of an FKArrayStore


Nested Class Summary
 
Nested classes/interfaces inherited from class org.datanucleus.store.mapped.scostore.ElementContainerStore
org.datanucleus.store.mapped.scostore.ElementContainerStore.ElementInfo
 
Field Summary
 
Fields inherited from class org.datanucleus.store.mapped.scostore.ElementContainerStore
clr, containerTable, elementInfo, elementIsPersistentInterface, elementMapping, elementsAreEmbedded, elementsAreSerialised, elementType, emd, iterateUsingDiscriminator, orderMapping, relationDiscriminatorMapping, relationDiscriminatorValue, specialization
 
Fields inherited from class org.datanucleus.store.mapped.scostore.BaseContainerStore
allowsNull, dba, LOCALISER, ownerMapping, ownerMemberMetaData, relationType, storeMgr
 
Constructor Summary
RDBMSFKArrayStore(org.datanucleus.metadata.AbstractMemberMetaData mmd, org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.ClassLoaderResolver clr)
           
 
Method Summary
protected  SQLStatement getSQLStatementForIterator(org.datanucleus.StateManager ownerSM)
          Method to generate an SQLStatement for iterating through elements of the set.
 java.util.Iterator iterator(org.datanucleus.StateManager ownerSM)
          Accessor for an iterator for the set.
 
Methods inherited from class org.datanucleus.store.mapped.scostore.FKArrayStore
clear, joinElementsTo, set
 
Methods inherited from class org.datanucleus.store.mapped.scostore.AbstractArrayStore
add, getArray, getExistsSubquery, getSizeSubquery
 
Methods inherited from class org.datanucleus.store.mapped.scostore.ElementContainerStore
getContainerTable, getElementInfo, getElementInformationForClass, getElementMapping, getElementType, getEmd, getOrderMapping, getRelationDiscriminatorMapping, getRelationDiscriminatorValue, hasOrderMapping, isElementsAreEmbedded, isElementsAreSerialised, size, validateElementForReading, validateElementForWriting, validateElementType
 
Methods inherited from class org.datanucleus.store.mapped.scostore.BaseContainerStore
allowsBatching, getDatastoreAdapter, getOwnerMapping, getOwnerMemberMetaData, getRelationType, getStateManagerForEmbeddedPCObject, isEmbeddedMapping, setOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.datanucleus.store.scostore.ArrayStore
getElementType, size
 

Constructor Detail

RDBMSFKArrayStore

public RDBMSFKArrayStore(org.datanucleus.metadata.AbstractMemberMetaData mmd,
                         org.datanucleus.store.mapped.MappedStoreManager storeMgr,
                         org.datanucleus.ClassLoaderResolver clr)
Parameters:
mmd - Metadata for the owning field/property
storeMgr - Manager for the datastore
clr - ClassLoader resolver
Method Detail

iterator

public java.util.Iterator iterator(org.datanucleus.StateManager ownerSM)
Accessor for an iterator for the set.

Specified by:
iterator in interface org.datanucleus.store.scostore.ArrayStore
Specified by:
iterator in class org.datanucleus.store.mapped.scostore.AbstractArrayStore
Parameters:
ownerSM - State Manager for the set.
Returns:
Iterator for the set.

getSQLStatementForIterator

protected SQLStatement getSQLStatementForIterator(org.datanucleus.StateManager ownerSM)
Method to generate an SQLStatement for iterating through elements of the set. Selects the element table. Populates the iteratorMappingDef and iteratorMappingParams.

Parameters:
ownerSM - StateManager for the owner object
Returns:
The SQLStatement


Copyright © 2009. All Rights Reserved.