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 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:
  • Field Details

    • statement

      protected String 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 of JPQLContextView . 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

      public String toString()
      The method provides a String representation of JPQLStatement.
      Overrides:
      toString in class Object