1 10 11 package com.triactive.jdo.store; 12 13 import com.triactive.jdo.StateManager; 14 import java.util.Collection ; 15 import java.util.Iterator ; 16 17 18 30 31 public interface SetStore 32 { 33 StoreManager getStoreManager(); 34 35 Class getElementType(); 36 37 boolean allowsNulls(); 38 39 Collection load(StateManager sm); 40 41 int size(StateManager sm); 42 43 boolean isEmpty(StateManager sm); 44 45 boolean contains(StateManager sm, Object element); 46 47 boolean add(StateManager sm, Object element); 48 49 boolean addAll(StateManager sm, Collection elements); 50 51 boolean remove(StateManager sm, Object element); 52 53 void clear(StateManager sm); 54 55 QueryStatement newQueryStatement(StateManager sm, Class candidateClass); 56 57 Query.ResultObjectFactory newResultObjectFactory(StateManager sm, QueryStatement stmt); 58 59 70 QueryStatement getExistsSubquery(QueryStatement.QueryColumn ownerIDColumn, 71 SQLIdentifier setRangeVar); 72 73 QueryStatement.QueryColumn 74 joinElementsTo(QueryStatement stmt, 75 QueryStatement.QueryColumn ownerIDColumn, 76 SQLIdentifier setRangeVar, 77 Class filteredElementType, 78 SQLIdentifier elementRangeVar); 79 } 80 | Popular Tags |