org.datanucleus.store.rdbms.scostore
Class RDBMSJoinArrayStore

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.JoinArrayStore
                  extended by org.datanucleus.store.rdbms.scostore.RDBMSJoinArrayStore
All Implemented Interfaces:
org.datanucleus.store.mapped.expression.ArrayStoreQueryable, org.datanucleus.store.scostore.ArrayStore, org.datanucleus.store.scostore.Store

public class RDBMSJoinArrayStore
extends org.datanucleus.store.mapped.scostore.JoinArrayStore

RDBMS-specific implementation of a JoinArrayStore


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
RDBMSJoinArrayStore(org.datanucleus.metadata.AbstractMemberMetaData mmd, ArrayTable arrayTable, org.datanucleus.ClassLoaderResolver clr)
          Constructor for an RDBMS implementation of a join array store.
 
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)
          Method to return an iterator to the array.
 
Methods inherited from class org.datanucleus.store.mapped.scostore.JoinArrayStore
joinElementsTo
 
Methods inherited from class org.datanucleus.store.mapped.scostore.AbstractArrayStore
add, clear, getArray, getExistsSubquery, getSizeSubquery, set
 
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

RDBMSJoinArrayStore

public RDBMSJoinArrayStore(org.datanucleus.metadata.AbstractMemberMetaData mmd,
                           ArrayTable arrayTable,
                           org.datanucleus.ClassLoaderResolver clr)
Constructor for an RDBMS implementation of a join array store.

Parameters:
mmd - Metadata for the owning field/property
arrayTable - The Join table
clr - ClassLoader resolver
Method Detail

iterator

public java.util.Iterator iterator(org.datanucleus.StateManager ownerSM)
Method to return an iterator to the array.

Specified by:
iterator in interface org.datanucleus.store.scostore.ArrayStore
Specified by:
iterator in class org.datanucleus.store.mapped.scostore.AbstractArrayStore
Parameters:
ownerSM - StateManager for the owner of the array

getSQLStatementForIterator

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

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


Copyright © 2009. All Rights Reserved.