|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.rdbms.scostore.BaseContainerStore
org.datanucleus.store.rdbms.scostore.ElementContainerStore
org.datanucleus.store.rdbms.scostore.AbstractCollectionStore
org.datanucleus.store.rdbms.scostore.AbstractListStore
org.datanucleus.store.rdbms.scostore.RDBMSFKListStore
public class RDBMSFKListStore
RDBMS-specific implementation of an ListStore using foreign keys.
| 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.AbstractListStore |
|---|
indexedList, indexOfStmt, lastIndexOfStmt, removeAtStmt, shiftStmt |
| Fields inherited from class org.datanucleus.store.rdbms.scostore.AbstractCollectionStore |
|---|
containsStmt |
| 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 | |
|---|---|
RDBMSFKListStore(org.datanucleus.metadata.AbstractMemberMetaData mmd,
RDBMSStoreManager storeMgr,
org.datanucleus.ClassLoaderResolver clr)
|
|
| Method Summary | |
|---|---|
void |
clear(org.datanucleus.store.ObjectProvider op)
Method to clear the List. |
protected SQLStatement |
getSQLStatementForIterator(org.datanucleus.store.ObjectProvider ownerSM,
int startIdx,
int endIdx,
org.datanucleus.store.mapped.StatementClassMapping resultMapping,
StatementParameterMapping paramMapping)
Method to generate an SQLStatement for iterating through elements of the list. |
protected boolean |
internalAdd(org.datanucleus.store.ObjectProvider op,
int startAt,
boolean atEnd,
Collection c,
int size)
Internal method for adding an item to the List. |
protected boolean |
internalRemove(org.datanucleus.store.ObjectProvider op,
Object element,
int size)
Convenience method to remove the specified element from the List. |
protected void |
internalRemoveAt(org.datanucleus.store.ObjectProvider op,
int index,
int size)
Internal method to remove an object at a location in the List. |
protected ListIterator |
listIterator(org.datanucleus.store.ObjectProvider ownerSM,
int startIdx,
int endIdx)
Accessor for an iterator through the list elements. |
protected void |
manageRemovalOfElement(org.datanucleus.store.ObjectProvider ownerSM,
Object element)
Convenience method to manage the removal of an element from the collection, performing any necessary "managed relationship" updates when the field is bidirectional. |
Object |
set(org.datanucleus.store.ObjectProvider op,
int index,
Object element,
boolean allowDependentField)
Method to set an object in the List at a position. |
void |
update(org.datanucleus.store.ObjectProvider op,
Collection coll)
Method to update the collection to be the supplied collection of elements. |
protected boolean |
validateElementForWriting(org.datanucleus.store.ObjectProvider sm,
Object element,
int index)
Method to validate that an element is valid for writing to the datastore. |
| Methods inherited from class org.datanucleus.store.rdbms.scostore.AbstractListStore |
|---|
add, add, addAll, addAll, get, getIndexOfStmt, getIndicesOf, getIndicesOfStmt, getLastIndexOfStmt, getRemoveAtStmt, getShiftStmt, indexOf, internalIndexOf, internalRemoveAt, internalShift, iterator, lastIndexOf, listIterator, remove, remove, removeAll, subList |
| Methods inherited from class org.datanucleus.store.rdbms.scostore.AbstractCollectionStore |
|---|
contains, containsInternal, getRemoveStmt, getUpdateEmbeddedElementStmt, internalRemove, updateEmbeddedElement, updateEmbeddedElement |
| 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.CollectionStore |
|---|
contains, hasOrderMapping, size, updateEmbeddedElement |
| Methods inherited from interface org.datanucleus.store.scostore.Store |
|---|
getStoreManager |
| Constructor Detail |
|---|
public RDBMSFKListStore(org.datanucleus.metadata.AbstractMemberMetaData mmd,
RDBMSStoreManager storeMgr,
org.datanucleus.ClassLoaderResolver clr)
mmd - Metadata for owning field/propertystoreMgr - Manager for the datastoreclr - ClassLoader resolver| Method Detail |
|---|
public Object set(org.datanucleus.store.ObjectProvider op,
int index,
Object element,
boolean allowDependentField)
op - ObjectProvider for the ownerindex - The item indexelement - What to set it to.allowDependentField - Whether to enable dependent-field deletes during the set
public void update(org.datanucleus.store.ObjectProvider op,
Collection coll)
update in interface org.datanucleus.store.scostore.CollectionStoreupdate in class AbstractCollectionStoreop - ObjectProvider for the ownercoll - The collection to use
protected boolean internalAdd(org.datanucleus.store.ObjectProvider op,
int startAt,
boolean atEnd,
Collection c,
int size)
internalAdd in class AbstractListStoreop - ObjectProvider for the ownerstartAt - The start positionatEnd - Whether to add at the endc - The Collection of elements to add.size - Current size of list (if known). -1 if not known
protected boolean internalRemove(org.datanucleus.store.ObjectProvider op,
Object element,
int size)
internalRemove in class AbstractListStoreop - ObjectProvider for the ownerelement - The elementsize - Current size of list if known. -1 if not known
protected void manageRemovalOfElement(org.datanucleus.store.ObjectProvider ownerSM,
Object element)
ownerSM - StateManager for the collection ownerelement - The element
protected void internalRemoveAt(org.datanucleus.store.ObjectProvider op,
int index,
int size)
internalRemoveAt in class AbstractListStoreop - ObjectProvider for the ownerindex - The locationsize - Current size of list (if known). -1 if not knownpublic void clear(org.datanucleus.store.ObjectProvider op)
clear in interface org.datanucleus.store.scostore.CollectionStoreclear in class ElementContainerStoreop - ObjectProvider for the owner
protected boolean validateElementForWriting(org.datanucleus.store.ObjectProvider sm,
Object element,
int index)
sm - StateManager for the Listelement - The element to validateindex - The position that the element is being stored at in the list
protected ListIterator listIterator(org.datanucleus.store.ObjectProvider ownerSM,
int startIdx,
int endIdx)
listIterator in class AbstractListStoreownerSM - State Manager for the container.startIdx - The start index in the list (only for indexed lists)endIdx - The end index in the list (only for indexed lists)
protected SQLStatement getSQLStatementForIterator(org.datanucleus.store.ObjectProvider ownerSM,
int startIdx,
int endIdx,
org.datanucleus.store.mapped.StatementClassMapping resultMapping,
StatementParameterMapping paramMapping)
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||