|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.jpa.openjpa.query.executor.JpaJdbcQueryExecutor
public class JpaJdbcQueryExecutor
Executes JPA's translated expression tree as a JDBC query.
Field Summary | |
---|---|
protected org.apache.openjpa.meta.ClassMetaData |
_classMetaData
|
protected org.apache.openjpa.kernel.exps.QueryExpressions |
_expression
|
protected Object[] |
_parameters
|
protected StringBuilder |
_sql
|
Constructor Summary | |
---|---|
JpaJdbcQueryExecutor(org.apache.openjpa.kernel.exps.QueryExpressions expression,
org.apache.openjpa.meta.ClassMetaData cm,
Object[] parameters)
|
Method Summary | |
---|---|
protected void |
appendGroupBySql()
Append GROUP BY to the SQL string builder. |
protected void |
appendOrderBySql()
Append ORDER BY to the SQL string builder. |
protected void |
appendSelectFromSql()
Append SELECT FROM to SQL string builder. |
protected void |
appendWhereSql()
Append WHERE clause to the SQL string builder. |
protected void |
build()
Build query for execution. |
org.apache.openjpa.lib.rop.ResultObjectProvider |
execute(StoreManager store)
Execute query. |
StringBuilder |
getSqlBuffer()
Gets the executor's generated SQL buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.apache.openjpa.kernel.exps.QueryExpressions _expression
protected org.apache.openjpa.meta.ClassMetaData _classMetaData
protected Object[] _parameters
protected StringBuilder _sql
Constructor Detail |
---|
public JpaJdbcQueryExecutor(org.apache.openjpa.kernel.exps.QueryExpressions expression, org.apache.openjpa.meta.ClassMetaData cm, Object[] parameters)
Method Detail |
---|
public org.apache.openjpa.lib.rop.ResultObjectProvider execute(StoreManager store) throws Exception
execute
in interface JpaQueryExecutor
store
- The store manager.
Exception
protected void build()
protected void appendWhereSql()
protected void appendSelectFromSql()
protected void appendOrderBySql()
protected void appendGroupBySql()
public StringBuilder getSqlBuffer()
getSqlBuffer
in interface JpaQueryExecutor
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |