Class QueryBuilderImpl
java.lang.Object
org.apache.openjpa.persistence.query.QueryBuilderImpl
- All Implemented Interfaces:
OpenJPAQueryBuilder
,QueryBuilder
The factory for QueryDefinition.
- Author:
- Pinaki Poddar
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a QueryDefinition without a domain.createQueryDefinition
(Class root) Creates a QueryDefinition with given class as domain.createQueryDefinition
(String jpql) Create a QueryDefinition from the given JPQL String.createQueryDefinition
(Query jpql) Create a QueryDefinition from the given OpenJPA Query instance.Creates a QueryDefinition that can be used a correlated subquery with the given path as domain.toJPQL
(QueryDefinition query) Gets equivalent JPQL String for the given QueryDefinition.
-
Constructor Details
-
QueryBuilderImpl
-
-
Method Details
-
createQueryDefinition
Creates a QueryDefinition without a domain.- Specified by:
createQueryDefinition
in interfaceQueryBuilder
- Returns:
- query definition instance
-
createQueryDefinition
Creates a QueryDefinition with given class as domain.- Specified by:
createQueryDefinition
in interfaceQueryBuilder
- Returns:
- root domain object
-
createSubqueryDefinition
Creates a QueryDefinition that can be used a correlated subquery with the given path as domain.- Specified by:
createSubqueryDefinition
in interfaceQueryBuilder
- Parameters:
path
- - path expression corresponding to the domain object used to derive the subquery root.- Returns:
- the subquery DomainObject
-
toJPQL
Description copied from interface:OpenJPAQueryBuilder
Gets equivalent JPQL String for the given QueryDefinition.- Specified by:
toJPQL
in interfaceOpenJPAQueryBuilder
-
createQueryDefinition
Description copied from interface:OpenJPAQueryBuilder
Create a QueryDefinition from the given JPQL String.- Specified by:
createQueryDefinition
in interfaceOpenJPAQueryBuilder
-
createQueryDefinition
Description copied from interface:OpenJPAQueryBuilder
Create a QueryDefinition from the given OpenJPA Query instance.- Specified by:
createQueryDefinition
in interfaceOpenJPAQueryBuilder
-