org.datanucleus.store.rdbms.scostore
Class RDBMSJoinListStore
java.lang.Object
org.datanucleus.store.mapped.scostore.BaseContainerStore
org.datanucleus.store.mapped.scostore.ElementContainerStore
org.datanucleus.store.mapped.scostore.AbstractCollectionStore
org.datanucleus.store.mapped.scostore.AbstractListStore
org.datanucleus.store.mapped.scostore.JoinListStore
org.datanucleus.store.rdbms.scostore.RDBMSJoinListStore
- All Implemented Interfaces:
- org.datanucleus.store.mapped.expression.CollectionStoreQueryable, org.datanucleus.store.scostore.CollectionStore, org.datanucleus.store.scostore.ListStore, org.datanucleus.store.scostore.Store
public class RDBMSJoinListStore
- extends org.datanucleus.store.mapped.scostore.JoinListStore
RDBMS-specific implementation of a JoinListStore
| Nested classes/interfaces inherited from class org.datanucleus.store.mapped.scostore.ElementContainerStore |
org.datanucleus.store.mapped.scostore.ElementContainerStore.ElementInfo |
| Fields inherited from class org.datanucleus.store.mapped.scostore.AbstractListStore |
indexedList |
| 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 |
RDBMSJoinListStore(org.datanucleus.metadata.AbstractMemberMetaData mmd,
CollectionTable collTable,
org.datanucleus.ClassLoaderResolver clr)
Constructor for an RDBMS implementation of a join list store. |
|
Method Summary |
protected SQLStatement |
getSQLStatementForIterator(org.datanucleus.StateManager ownerSM,
int startIdx,
int endIdx,
org.datanucleus.store.mapped.StatementClassMapping resultMapping,
org.datanucleus.store.mapped.StatementParameterMapping paramMapping)
Method to generate an SQLStatement for iterating through elements of the set. |
protected java.util.ListIterator |
listIterator(org.datanucleus.StateManager ownerSM,
int startIdx,
int endIdx)
Accessor for an iterator through the list elements. |
| Methods inherited from class org.datanucleus.store.mapped.scostore.JoinListStore |
internalAdd, internalRemove, joinElementsTo, removeAll, removeAt, set, update |
| Methods inherited from class org.datanucleus.store.mapped.scostore.AbstractListStore |
add, add, addAll, addAll, get, getIndicesOf, indexOf, iterator, lastIndexOf, listIterator, remove, remove, subList |
| Methods inherited from class org.datanucleus.store.mapped.scostore.AbstractCollectionStore |
contains, getExistsSubquery, getSizeSubquery, updateEmbeddedElement |
| Methods inherited from class org.datanucleus.store.mapped.scostore.ElementContainerStore |
clear, 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.CollectionStore |
clear, contains, getElementType, hasOrderMapping, size, updateEmbeddedElement |
| Methods inherited from interface org.datanucleus.store.scostore.Store |
getStoreManager |
RDBMSJoinListStore
public RDBMSJoinListStore(org.datanucleus.metadata.AbstractMemberMetaData mmd,
CollectionTable collTable,
org.datanucleus.ClassLoaderResolver clr)
- Constructor for an RDBMS implementation of a join list store.
- Parameters:
mmd - Metadata for the owning field/propertycollTable - The Join tableclr - ClassLoader resolver
listIterator
protected java.util.ListIterator listIterator(org.datanucleus.StateManager ownerSM,
int startIdx,
int endIdx)
- Accessor for an iterator through the list elements.
- Specified by:
listIterator in class org.datanucleus.store.mapped.scostore.AbstractListStore
- Parameters:
ownerSM - State Manager for the container.startIdx - The start point in the list (only for indexed lists).endIdx - End index in the list (only for indexed lists).
- Returns:
- The List Iterator
getSQLStatementForIterator
protected SQLStatement getSQLStatementForIterator(org.datanucleus.StateManager ownerSM,
int startIdx,
int endIdx,
org.datanucleus.store.mapped.StatementClassMapping resultMapping,
org.datanucleus.store.mapped.StatementParameterMapping paramMapping)
- Method to generate an SQLStatement for iterating through elements of the set.
Selects the join table.
Populates the resultMapping and paramMapping argument objects.
- Parameters:
ownerSM - StateManager for the owner objectstartIdx - start index to be retrieved (inclusive). Only for indexed listendIdx - end index to be retrieved (exclusive). Only for indexed listresultMapping - Mapping for the candidate result columnsparamMapping - Mapping for the input parameters
- Returns:
- The SQLStatement
Copyright © 2009. All Rights Reserved.