Class JPQLStatement
- java.lang.Object
-
- org.apache.olingo.odata2.jpa.processor.api.jpql.JPQLStatement
-
public class JPQLStatement extends Object
The class represents a Java Persistence Query Language (JPQL) Statement. The JPQL statement is built using a builder namelyJPQLStatement.JPQLStatementBuilder. Based upon the JPQL Context types (JPQLContextTypedifferent kinds of JPQL statements are built. The JPQL statements thus generated can be executed using JPA Query APIs to fetch JPA entities.- See Also:
JPQLBuilderFactory,JPQLContextView
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJPQLStatement.DELIMITERstatic classJPQLStatement.JPQLStatementBuilderThe abstract class is extended by specific JPQL statement builders for building JPQL statements like Select statements Select single statements Select statements with Join Insert/Modify/Delete statements A default statement builder for building each kind of JPQL statements is provided by the library.static classJPQLStatement.KEYWORDstatic classJPQLStatement.Operator
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JPQLStatement.JPQLStatementBuildercreateBuilder(JPQLContextView context)The method is used for creating an instance of JPQL Statement Builder for building JPQL statements.StringtoString()The method provides a String representation of JPQLStatement.
-
-
-
Field Detail
-
statement
protected String statement
-
-
Method Detail
-
createBuilder
public static JPQLStatement.JPQLStatementBuilder createBuilder(JPQLContextView context) throws ODataJPARuntimeException
The method is used for creating an instance of JPQL Statement Builder for building JPQL statements. The JPQL Statement builder is created based upon the JPQL Context.- Parameters:
context- a non null value ofJPQLContextView. The context is expected to be set to be built with no errors.- Returns:
- an instance of JPQL statement builder
- Throws:
ODataJPARuntimeException- Caso ocorra exceção
-
-