|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.mapped.scostore.BaseContainerStore
org.datanucleus.store.mapped.scostore.ElementContainerStore
org.datanucleus.store.mapped.scostore.AbstractArrayStore
public abstract class AbstractArrayStore
Abstract representation of the backing store for an array.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.datanucleus.store.mapped.scostore.ElementContainerStore |
|---|
ElementContainerStore.ElementInfo |
| Field Summary |
|---|
| 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 | |
|---|---|
protected |
AbstractArrayStore(StoreManager storeMgr,
ClassLoaderResolver clr,
AbstractArrayStoreSpecialization specialization)
Constructor. |
| Method Summary | |
|---|---|
boolean |
add(StateManager sm,
java.lang.Object element,
int position)
Adds one element to the association owner vs elements |
void |
clear(StateManager ownerSM)
Clear the association from owner to all elements. |
java.util.List |
getArray(StateManager ownerSM)
Accessor for the array from the datastore. |
QueryExpression |
getExistsSubquery(QueryExpression qs,
JavaTypeMapping mapping,
LogicSetExpression ownerTe,
DatastoreIdentifier arrayTableAlias)
Query utility to generate an exists() statement for an element. |
QueryExpression |
getSizeSubquery(QueryExpression qs,
JavaTypeMapping mapping,
LogicSetExpression ownerTe,
DatastoreIdentifier arrayTableAlias)
Query utility to generate a subquery for the size() of the collection. |
abstract java.util.Iterator |
iterator(StateManager ownerSM)
Accessor for an iterator through the array elements. |
boolean |
set(StateManager ownerSM,
java.lang.Object array)
Method to set the array for the specified owner to the passed value. |
| Methods inherited from class org.datanucleus.store.mapped.scostore.ElementContainerStore |
|---|
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, 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.ArrayStore |
|---|
getElementType, size |
| Methods inherited from interface org.datanucleus.store.scostore.Store |
|---|
getStoreManager |
| Methods inherited from interface org.datanucleus.store.mapped.expression.ArrayStoreQueryable |
|---|
joinElementsTo |
| Constructor Detail |
|---|
protected AbstractArrayStore(StoreManager storeMgr,
ClassLoaderResolver clr,
AbstractArrayStoreSpecialization specialization)
storeMgr - Manager for the storeclr - ClassLoader resolver| Method Detail |
|---|
public java.util.List getArray(StateManager ownerSM)
getArray in interface ArrayStoreownerSM - SM for the owner
public void clear(StateManager ownerSM)
clear in interface ArrayStoreclear in class ElementContainerStoreownerSM - State Manager for the container.
public boolean set(StateManager ownerSM,
java.lang.Object array)
set in interface ArrayStoreownerSM - State Manager for the ownerarray - the array
public boolean add(StateManager sm,
java.lang.Object element,
int position)
sm - State Manager for the containerelement - The element to addposition - The position to add this element at
public abstract java.util.Iterator iterator(StateManager ownerSM)
iterator in interface ArrayStoreiterator in class ElementContainerStoreownerSM - State Manager for the container.
public QueryExpression getExistsSubquery(QueryExpression qs,
JavaTypeMapping mapping,
LogicSetExpression ownerTe,
DatastoreIdentifier arrayTableAlias)
SELECT 1 FROM JOINTABLE THIS_JOIN WHERE THIS_JOIN.OWNER_ID_OID = THIS.OWNER_ID
getExistsSubquery in interface ArrayStoreQueryableqs - The JDOQL query statementmapping - mapping of the fieldownerTe - Expression for the tablearrayTableAlias - alias for the array
public QueryExpression getSizeSubquery(QueryExpression qs,
JavaTypeMapping mapping,
LogicSetExpression ownerTe,
DatastoreIdentifier arrayTableAlias)
SELECT COUNT(*) FROM JOINTABLE THIS_JOIN WHERE THIS_JOIN.OWNER_ID_OID = THIS.OWNER_ID
getSizeSubquery in interface ArrayStoreQueryableqs - The query statementmapping - mapping of the fieldownerTe - Expression for the tablearrayTableAlias - alias for the array
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||