E
- Type of element in this arraypublic abstract class AbstractArrayStore<E> extends ElementContainerStore implements org.datanucleus.store.scostore.ArrayStore<E>
ElementContainerStore.ElementInfo
addStmt, clearStmt, containerTable, elementInfo, elementIsPersistentInterface, elementMapping, elementsAreEmbedded, elementsAreSerialised, elementType, emd, iterateUsingDiscriminator, orderMapping, relationDiscriminatorMapping, relationDiscriminatorValue, removeStmt, sizeStmt
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,
E 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<E> |
getArray(org.datanucleus.state.ObjectProvider op)
Accessor for the array from the datastore.
|
int[] |
internalAdd(org.datanucleus.state.ObjectProvider op,
E 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<E> |
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.
|
getAddStmtForJoinTable, getClearStmt, getContainerTable, getElementInfoForElement, getElementInformationForClass, getElementMapping, getEmd, getRelationDiscriminatorMapping, getRelationDiscriminatorValue, getSize, getSizeStmt, hasOrderMapping, invalidateAddStmt, isElementsAreEmbedded, isElementsAreSerialised, size, usingJoinTable, 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<E> getArray(org.datanucleus.state.ObjectProvider op)
getArray
in interface org.datanucleus.store.scostore.ArrayStore<E>
op
- SM for the ownerpublic void clear(org.datanucleus.state.ObjectProvider op)
clear
in interface org.datanucleus.store.scostore.ArrayStore<E>
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<E>
op
- ObjectProvider for the ownerarray
- the arraypublic boolean add(org.datanucleus.state.ObjectProvider op, E element, int position)
op
- ObjectProvider for the containerelement
- The element to addposition
- The position to add this element atpublic abstract Iterator<E> iterator(org.datanucleus.state.ObjectProvider ownerOP)
iterator
in interface org.datanucleus.store.scostore.ArrayStore<E>
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, E 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 © 2017. All rights reserved.