|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CollectionStore
Interface representation of the backing store for a Collection.
| Method Summary | |
|---|---|
boolean |
add(StateManager sm,
java.lang.Object element)
Method to add an element to the collection. |
boolean |
addAll(StateManager sm,
java.util.Collection elements)
Method to add a collection of elements to the collection. |
void |
clear(StateManager sm)
Method to clear the collection. |
boolean |
contains(StateManager sm,
java.lang.Object element)
Method to check if an element exists in the collection. |
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. |
boolean |
hasOrderMapping()
Accessor for whether the store utilises an order mapping. |
java.util.Iterator |
iterator(StateManager sm)
Accessor for an iterator for the collection. |
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. |
QueryExpression |
newQueryStatement(StateManager sm,
java.lang.String candidateClass)
Method to return a new Query Statement containing the candidate class. |
Query.ResultObjectFactory |
newResultObjectFactory(StateManager sm,
QueryExpression stmt,
boolean ignoreCache,
boolean useFetchPlan)
Method to return an object factory for processing query statements. |
boolean |
remove(StateManager sm,
java.lang.Object element)
Method to remove an element from the collection. |
boolean |
removeAll(StateManager sm,
java.util.Collection elements)
Method to remove a collection of elements from the collection. |
int |
size(StateManager sm)
Accessor for the size of the collection. |
boolean |
updateEmbeddedElement(StateManager sm,
java.lang.Object element,
int fieldNumber,
java.lang.Object value)
Method to update en embedded element in the collection. |
| Methods inherited from interface org.jpox.store.scostore.Store |
|---|
getOwnerMapping, getStoreManager |
| Method Detail |
|---|
java.lang.String getElementType()
boolean hasOrderMapping()
boolean updateEmbeddedElement(StateManager sm,
java.lang.Object element,
int fieldNumber,
java.lang.Object value)
sm - State Manager of the ownerelement - The elementfieldNumber - Field to update in the elementvalue - The new value for the field
java.util.Iterator iterator(StateManager sm)
sm - State Manager for the collection.
int size(StateManager sm)
sm - State Manager for the collection.
boolean contains(StateManager sm,
java.lang.Object element)
sm - State Manager for the collection.element - Element to check
boolean add(StateManager sm,
java.lang.Object element)
sm - State Manager for the collection.element - Element to add
boolean addAll(StateManager sm,
java.util.Collection elements)
sm - State Manager for the collection.elements - Elements to add
boolean remove(StateManager sm,
java.lang.Object element)
sm - State Manager for the collection.element - Element to remove
boolean removeAll(StateManager sm,
java.util.Collection elements)
sm - State Manager for the collection.elements - Element to remove
void clear(StateManager sm)
sm - State Manager for the collection.
QueryExpression newQueryStatement(StateManager sm,
java.lang.String candidateClass)
sm - State Manager for the collection.candidateClass - Class of the elements.
Query.ResultObjectFactory newResultObjectFactory(StateManager sm,
QueryExpression stmt,
boolean ignoreCache,
boolean useFetchPlan)
sm - State Manager for the collection.stmt - The Query Statement.ignoreCache - Whether to ignore the cache.useFetchPlan - whether to use the fetch plan to retrieve fields in the same query
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.
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
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 stmtownerMapping - 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 | |||||||||