org.datanucleus.store.rdbms.scostore
Class RDBMSJoinArrayStore
java.lang.Object
org.datanucleus.store.rdbms.scostore.BaseContainerStore
org.datanucleus.store.rdbms.scostore.ElementContainerStore
org.datanucleus.store.rdbms.scostore.AbstractArrayStore
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
| 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 |
|
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.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 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 |
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/propertyarrayTable - The Join tableclr - ClassLoader resolver
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.