public abstract class AbstractArrayStore extends ElementContainerStore implements org.datanucleus.store.scostore.ArrayStore
ElementContainerStore.ElementInfo
addStmt, clearStmt, containerTable, elementInfo, elementIsPersistentInterface, elementMapping, elementsAreEmbedded, elementsAreSerialised, elementType, emd, iterateUsingDiscriminator, orderMapping, relationDiscriminatorMapping, relationDiscriminatorValue, removeStmt, sizeStmt, usingDiscriminatorInSizeStmt
allowNulls, clr, dba, ownerMapping, ownerMemberMetaData, relationType, storeMgr
Modifier | Constructor and Description |
---|---|
protected |
AbstractArrayStore(RDBMSStoreManager storeMgr,
org.datanucleus.ClassLoaderResolver clr)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(org.datanucleus.state.ObjectProvider op,
Object element,
int position)
Adds one element to the association owner vs elements
|
void |
clear(org.datanucleus.state.ObjectProvider op)
Clear the association from owner to all elements.
|
void |
clearInternal(org.datanucleus.state.ObjectProvider ownerOP) |
List |
getArray(org.datanucleus.state.ObjectProvider op)
Accessor for the array from the datastore.
|
int[] |
internalAdd(org.datanucleus.state.ObjectProvider op,
Object element,
org.datanucleus.store.connection.ManagedConnection conn,
boolean batched,
int orderId,
boolean executeNow)
Internal method to add a row to the join table.
|
abstract Iterator |
iterator(org.datanucleus.state.ObjectProvider ownerOP)
Accessor for an iterator through the array elements.
|
void |
processBatchedWrites(org.datanucleus.store.connection.ManagedConnection mconn) |
boolean |
set(org.datanucleus.state.ObjectProvider op,
Object array)
Method to set the array for the specified owner to the passed value.
|
executeClear, getAddStmtForJoinTable, getClearStmt, getContainerTable, getElementInfo, getElementInformationForClass, getElementMapping, getEmd, getOrderMapping, getRelationDiscriminatorMapping, getRelationDiscriminatorValue, getSize, getSizeStmt, hasOrderMapping, invalidateAddStmt, isElementsAreEmbedded, isElementsAreSerialised, size, validateElementForReading, validateElementForWriting, validateElementType
allowsBatching, getDatastoreAdapter, getObjectProviderForEmbeddedPCObject, getOwnerMapping, getOwnerMemberMetaData, getRelationType, getStoreManager, isEmbeddedMapping, setOwner
protected AbstractArrayStore(RDBMSStoreManager storeMgr, org.datanucleus.ClassLoaderResolver clr)
storeMgr
- Manager for the storeclr
- ClassLoader resolverpublic List getArray(org.datanucleus.state.ObjectProvider op)
getArray
in interface org.datanucleus.store.scostore.ArrayStore
op
- SM for the ownerpublic void clear(org.datanucleus.state.ObjectProvider op)
clear
in interface org.datanucleus.store.scostore.ArrayStore
clear
in class ElementContainerStore
op
- ObjectProvider for the container.public boolean set(org.datanucleus.state.ObjectProvider op, Object array)
set
in interface org.datanucleus.store.scostore.ArrayStore
op
- ObjectProvider for the ownerarray
- the arraypublic boolean add(org.datanucleus.state.ObjectProvider op, Object element, int position)
op
- ObjectProvider for the containerelement
- The element to addposition
- The position to add this element atpublic abstract Iterator iterator(org.datanucleus.state.ObjectProvider ownerOP)
iterator
in interface org.datanucleus.store.scostore.ArrayStore
iterator
in class ElementContainerStore
ownerOP
- ObjectProvider for the container.public void clearInternal(org.datanucleus.state.ObjectProvider ownerOP)
public int[] internalAdd(org.datanucleus.state.ObjectProvider op, Object element, org.datanucleus.store.connection.ManagedConnection conn, boolean batched, int orderId, boolean executeNow) throws MappedDatastoreException
op
- ObjectProvider for the owner of the collectionelement
- The element to add the relation toconn
- The connectionbatched
- Whether we are batchingorderId
- The order id to use for this element relationexecuteNow
- Whether to execute the statement now (and not wait for any batch)MappedDatastoreException
- Thrown if an error occurspublic void processBatchedWrites(org.datanucleus.store.connection.ManagedConnection mconn) throws MappedDatastoreException
MappedDatastoreException
Copyright © 2015. All rights reserved.