org.datanucleus.store.rdbms.scostore
Class RDBMSJoinArrayStore

java.lang.Object
  extended by org.datanucleus.store.rdbms.scostore.BaseContainerStore
      extended by org.datanucleus.store.rdbms.scostore.ElementContainerStore
          extended by org.datanucleus.store.rdbms.scostore.AbstractArrayStore
              extended by org.datanucleus.store.rdbms.scostore.RDBMSJoinArrayStore
All Implemented Interfaces:
org.datanucleus.store.scostore.ArrayStore, org.datanucleus.store.scostore.Store

public class RDBMSJoinArrayStore
extends AbstractArrayStore

RDBMS-specific implementation of a Join ArrayStore


Nested Class Summary
 
Nested classes/interfaces inherited from class org.datanucleus.store.rdbms.scostore.ElementContainerStore
ElementContainerStore.ElementInfo
 
Field Summary
 
Fields inherited from class org.datanucleus.store.rdbms.scostore.ElementContainerStore
addStmt, clearStmt, clr, containerTable, elementInfo, elementIsPersistentInterface, elementMapping, elementsAreEmbedded, elementsAreSerialised, elementType, emd, iterateUsingDiscriminator, orderMapping, relationDiscriminatorMapping, relationDiscriminatorValue, removeStmt, sizeStmt, usingDiscriminatorInSizeStmt
 
Fields inherited from class org.datanucleus.store.rdbms.scostore.BaseContainerStore
allowNulls, 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.store.ObjectProvider ownerSM)
          Method to generate an SQLStatement for iterating through elements of the set.
 Iterator iterator(org.datanucleus.store.ObjectProvider ownerSM)
          Method to return an iterator to the array.
 
Methods inherited from class org.datanucleus.store.rdbms.scostore.AbstractArrayStore
add, clear, clearInternal, getArray, internalAdd, processBatchedWrites, set
 
Methods inherited from class org.datanucleus.store.rdbms.scostore.ElementContainerStore
executeClear, getAddStmt, getClearStmt, getContainerTable, getElementInfo, getElementInformationForClass, getElementMapping, getEmd, getOrderMapping, getRelationDiscriminatorMapping, getRelationDiscriminatorValue, getSize, getSizeStmt, hasOrderMapping, invalidateAddStmt, isElementsAreEmbedded, isElementsAreSerialised, size, validateElementForReading, validateElementForWriting, validateElementType
 
Methods inherited from class org.datanucleus.store.rdbms.scostore.BaseContainerStore
allowsBatching, getDatastoreAdapter, getOwnerMapping, getOwnerMemberMetaData, getRelationType, getStateManagerForEmbeddedPCObject, getStoreManager, 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
size
 
Methods inherited from interface org.datanucleus.store.scostore.Store
getStoreManager
 

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 Iterator iterator(org.datanucleus.store.ObjectProvider ownerSM)
Method to return an iterator to the array.

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

getSQLStatementForIterator

protected SQLStatement getSQLStatementForIterator(org.datanucleus.store.ObjectProvider 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 © 2012. All Rights Reserved.