public class JpaJdbcQueryExecutor extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.openjpa.meta.ClassMetaData |
_classMetaData |
protected org.apache.openjpa.kernel.exps.QueryExpressions |
_expression |
protected Object[] |
_parameters |
protected StringBuilder |
_sql |
Constructor and Description |
---|
JpaJdbcQueryExecutor(org.apache.openjpa.kernel.exps.QueryExpressions expression,
org.apache.openjpa.meta.ClassMetaData cm,
Object[] parameters) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected org.apache.openjpa.kernel.exps.QueryExpressions _expression
protected org.apache.openjpa.meta.ClassMetaData _classMetaData
protected Object[] _parameters
protected StringBuilder _sql
public JpaJdbcQueryExecutor(org.apache.openjpa.kernel.exps.QueryExpressions expression, org.apache.openjpa.meta.ClassMetaData cm, Object[] parameters)
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
Copyright © GigaSpaces.