|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface representation of the backing store for an array.
Method Summary | |
void |
clear(StateManager ownerSM)
Method to clear the array. |
java.util.List |
getArray(StateManager ownerSM)
Method to retrieve the elements of the array. |
java.lang.String |
getElementType()
Accessor for the element type in the collection. |
QueryExpression |
getExistsSubquery(QueryExpression stmt,
JavaTypeMapping ownerMapping,
LogicSetExpression ownerTe,
DatastoreIdentifier collRangeVar)
Create a subquery for the given query that joins a SetStore element table to the owner table. |
QueryExpression |
getSizeSubquery(QueryExpression stmt,
JavaTypeMapping ownerMapping,
LogicSetExpression ownerTe,
DatastoreIdentifier collRangeVar)
Create a subquery for the size of the collection. |
java.util.Iterator |
iterator(StateManager sm)
Accessor for an iterator for the array. |
ScalarExpression |
joinElementsTo(QueryExpression stmt,
QueryExpression parentStmt,
JavaTypeMapping ownerMapping,
LogicSetExpression ownerTe,
DatastoreIdentifier collRangeVar,
java.lang.Class filteredElementType,
ScalarExpression elmExpr,
DatastoreIdentifier elementRangeVar)
Method used in queries when contains() has been invoked. |
boolean |
set(StateManager ownerSM,
java.lang.Object array)
Method to set the elements in the array. |
int |
size(StateManager sm)
Accessor for the size of the array. |
Methods inherited from interface org.jpox.store.scostore.Store |
getOwnerMapping, getStoreManager |
Method Detail |
public java.lang.String getElementType()
public java.util.Iterator iterator(StateManager sm)
sm
- State Manager for the array.
public java.util.List getArray(StateManager ownerSM)
ownerSM
- State Manager of the owner
public int size(StateManager sm)
sm
- State Manager for the owner.
public void clear(StateManager ownerSM)
ownerSM
- State Manager for the owner.public boolean set(StateManager ownerSM, java.lang.Object array)
ownerSM
- State Manager for the owner.array
- The array
public QueryExpression getExistsSubquery(QueryExpression stmt, JavaTypeMapping ownerMapping, LogicSetExpression ownerTe, DatastoreIdentifier collRangeVar)
stmt
- The Query Statement.ownerMapping
- the mapping for the owner.ownerTe
- Table Expression for the ownercollRangeVar
- The range variable for the "Collection" table.
public QueryExpression getSizeSubquery(QueryExpression stmt, JavaTypeMapping ownerMapping, LogicSetExpression ownerTe, DatastoreIdentifier collRangeVar)
stmt
- The Query StatementownerMapping
- Mapping for the ownerownerTe
- Table Expression for the ownercollRangeVar
- Range variable for the owner
public ScalarExpression joinElementsTo(QueryExpression stmt, QueryExpression parentStmt, JavaTypeMapping ownerMapping, LogicSetExpression ownerTe, DatastoreIdentifier collRangeVar, java.lang.Class filteredElementType, ScalarExpression elmExpr, DatastoreIdentifier elementRangeVar)
stmt
- The Query StatementparentStmt
- the parent Query Statement. If there is no parent, parentStmt
must be equals to stmt
ownerMapping
- the mapping for the owner.ownerTe
- Table Expression for the ownercollRangeVar
- The range variable for the "Collection" table.filteredElementType
- The Class Type for the filtered elementelmExpr
- The Expression for the elementelementRangeVar
- The SQL alias, or "range variable", to assign to the
expression or to the element table.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |