GigaSpaces XAP 10.0.1 API

org.openspaces.jpa.openjpa.query.executor
Class JpaQueryExecutorFactory

java.lang.Object
  extended by org.openspaces.jpa.openjpa.query.executor.JpaQueryExecutorFactory

public class JpaQueryExecutorFactory
extends Object

A factory for creating a JpaQueryExecutor instance.

Since:
8.0
Author:
idan

Constructor Summary
JpaQueryExecutorFactory()
           
 
Method Summary
static JpaQueryExecutor newExecutor(org.apache.openjpa.kernel.exps.QueryExpressions expression, org.apache.openjpa.meta.ClassMetaData cm, Object[] parameters)
          Returns a new JpaQueryExecutor implementation instance based on the provided parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaQueryExecutorFactory

public JpaQueryExecutorFactory()
Method Detail

newExecutor

public static JpaQueryExecutor newExecutor(org.apache.openjpa.kernel.exps.QueryExpressions expression,
                                           org.apache.openjpa.meta.ClassMetaData cm,
                                           Object[] parameters)
Returns a new JpaQueryExecutor implementation instance based on the provided parameters. If the provided expression tree requires aggregation - a JDBC executor is returned. Otherwise an SQLQuery executor is returned.

Parameters:
expression - The expression tree.
cm - The queried class meta data.
parameters - The user set parameters.
Returns:
A JpaQueryExecutor implementation instance.

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.