Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa » kernel » [javadoc | source]
org.apache.openjpa.kernel
public class: QueryImpl [javadoc | source]
java.lang.Object
   org.apache.openjpa.kernel.QueryImpl

All Implemented Interfaces:
    Query

Implementation of the Query interface.
Nested Class Summary:
protected static class  QueryImpl.Compilation  Struct of compiled query properties. 
public class  QueryImpl.RemoveOnCloseResultList  Result list that removes itself from the query's open result list when it is closed. Public for testing. 
Constructor:
 public QueryImpl(Broker broker,
    String language,
    StoreQuery storeQuery) 
    Construct a query managed by the given broker.
Method from org.apache.openjpa.kernel.QueryImpl Summary:
addAggregateListener,   addFilterListener,   assertNotReadOnly,   assertNotSerialized,   assertOpen,   assertParameters,   classForName,   closeAll,   closeResources,   compilationFromCache,   compile,   declareParameters,   decorateResultList,   deleteAll,   deleteAll,   deleteAll,   deleteInMemory,   execute,   execute,   execute,   getAccessPathMetaDatas,   getAggregateListener,   getAggregateListeners,   getAlias,   getBroker,   getCandidateCollection,   getCandidateExtent,   getCandidateType,   getCompilation,   getDataStoreActions,   getEndRange,   getFetchConfiguration,   getFilterListener,   getFilterListeners,   getIgnoreChanges,   getLanguage,   getOperation,   getParameterDeclaration,   getParameterTypes,   getProjectionAliases,   getProjectionTypes,   getQuery,   getQueryString,   getResultMappingName,   getResultMappingScope,   getResultType,   getStartRange,   getStoreContext,   getStoreQuery,   getUpdates,   hasGrouping,   hasSubclasses,   isAccessPathDirty,   isAggregate,   isReadOnly,   isUnique,   lock,   removeAggregateListener,   removeFilterListener,   setCandidateCollection,   setCandidateExtent,   setCandidateType,   setIgnoreChanges,   setQuery,   setRange,   setReadOnly,   setResultMapping,   setResultType,   setUnique,   toResult,   toString,   unlock,   updateAll,   updateAll,   updateAll,   updateInMemory
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.kernel.QueryImpl Detail:
 public  void addAggregateListener(AggregateListener listener) 
 public  void addFilterListener(FilterListener listener) 
 public  void assertNotReadOnly() 
 public  void assertNotSerialized() 
 public  void assertOpen() 
 protected  void assertParameters(StoreQuery q,
    StoreQuery.Executor ex,
    Object[] params) 
    Checks that the passed parameters match the declarations.
 public Class classForName(String name,
    String[] imports) 
 public  void closeAll() 
 public  void closeResources() 
 protected QueryImpl.Compilation compilationFromCache() 
    Find the cached compilation for the current query, creating one if it does not exist.
 public  void compile() 
 public  void declareParameters(String params) 
 protected ResultList decorateResultList(ResultList res) 
    Optionally decorate the native result.
 public long deleteAll() 
 public long deleteAll(Object[] params) 
 public long deleteAll(Map params) 
 public Number deleteInMemory(StoreQuery q,
    StoreQuery.Executor executor,
    Object[] params) 
 public Object execute() 
 public Object execute(Object[] params) 
 public Object execute(Map params) 
 public ClassMetaData[] getAccessPathMetaDatas() 
 public AggregateListener getAggregateListener(String tag) 
 public Collection getAggregateListeners() 
 public String getAlias() 
 public Broker getBroker() 
 public Collection getCandidateCollection() 
 public Extent getCandidateExtent() 
 public Class getCandidateType() 
 public Object getCompilation() 
 public String[] getDataStoreActions(Map params) 
 public long getEndRange() 
 public FetchConfiguration getFetchConfiguration() 
 public FilterListener getFilterListener(String tag) 
 public Collection getFilterListeners() 
 public boolean getIgnoreChanges() 
 public String getLanguage() 
 public int getOperation() 
 public String getParameterDeclaration() 
 public LinkedMap getParameterTypes() 
 public String[] getProjectionAliases() 
 public Class[] getProjectionTypes() 
 public Query getQuery() 
 public String getQueryString() 
 public String getResultMappingName() 
 public Class getResultMappingScope() 
 public Class getResultType() 
 public long getStartRange() 
 public StoreContext getStoreContext() 
 public StoreQuery getStoreQuery() 
    Internal store query.
 public Map getUpdates() 
 public boolean hasGrouping() 
 public boolean hasSubclasses() 
 public static boolean isAccessPathDirty(Broker broker,
    ClassMetaData[] accessMetas) 
 public boolean isAggregate() 
 public boolean isReadOnly() 
 public boolean isUnique() 
 public  void lock() 
 public  void removeAggregateListener(AggregateListener listener) 
 public  void removeFilterListener(FilterListener listener) 
 public  void setCandidateCollection(Collection candidateCollection) 
 public  void setCandidateExtent(Extent candidateExtent) 
 public  void setCandidateType(Class candidateClass,
    boolean subs) 
 public  void setIgnoreChanges(boolean flag) 
 public boolean setQuery(Object query) 
 public  void setRange(long start,
    long end) 
 public  void setReadOnly(boolean flag) 
 public  void setResultMapping(Class scope,
    String name) 
 public  void setResultType(Class cls) 
 public  void setUnique(boolean unique) 
 protected Object toResult(StoreQuery q,
    StoreQuery.Executor ex,
    ResultObjectProvider rop,
    StoreQuery.Range range) throws Exception 
    Return the query result for the given result object provider.
 public String toString() 
 public  void unlock() 
 public long updateAll() 
 public long updateAll(Object[] params) 
 public long updateAll(Map params) 
 public Number updateInMemory(StoreQuery q,
    StoreQuery.Executor executor,
    Object[] params)