Class JPQLStatement
java.lang.Object
org.apache.olingo.odata2.jpa.processor.api.jpql.JPQLStatement
The class represents a Java Persistence Query Language (JPQL) Statement.
The JPQL statement is built using a builder namely
JPQLStatement.JPQLStatementBuilder . Based upon the JPQL
Context types ( JPQLContextType different
kinds of JPQL statements are built.
The JPQL statements thus generated can be executed using JPA Query APIs to fetch JPA entities.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic classThe 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 final classstatic final class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateBuilder(JPQLContextView context) The method is used for creating an instance of JPQL Statement Builder for building JPQL statements.toString()The method provides a String representation of JPQLStatement.
-
Field Details
-
statement
-
-
Method Details
-
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
-
toString
The method provides a String representation of JPQLStatement.
-