Class JPQLContext.JPQLContextBuilder

  • Enclosing class:
    JPQLContext

    public abstract static class JPQLContext.JPQLContextBuilder
    extends Object
    The abstract class is extended by specific JPQLContext builder for building JPQLContexts.
    • Field Detail

      • aliasCounter

        protected int aliasCounter
        alias counter is an integer counter that is incremented by "1" for every new alias name generation. The value of counter is used in the generation of JPA entity alias names.
      • withPaging

        protected boolean withPaging
    • Constructor Detail

      • JPQLContextBuilder

        protected JPQLContextBuilder()
    • Method Detail

      • setResultsView

        protected abstract void setResultsView​(Object resultsView)
        The abstract method is implemented by specific JPQL context builder. The method sets the OData request view into the JPQL context.
        Parameters:
        resultsView - is an instance representing OData request.
      • resetAliasCounter

        protected void resetAliasCounter()
        The method resets the alias counter value to "0".
      • generateJPAEntityAlias

        protected String generateJPAEntityAlias()
        The method returns a system generated alias name starting with prefix "E" and ending with suffix "aliasCounter".
        Returns:
        a String representing JPA entity alias name