Class JPQLContext.JPQLContextBuilder
- java.lang.Object
-
- org.apache.olingo.odata2.jpa.processor.api.jpql.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 Summary
Fields Modifier and Type Field Description protected intaliasCounteralias counter is an integer counter that is incremented by "1" for every new alias name generation.protected booleanwithPaging
-
Constructor Summary
Constructors Modifier Constructor Description protectedJPQLContextBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract JPQLContextbuild()The abstract method is implemented by specific JPQL context builders to build JPQL Contexts.protected StringgenerateJPAEntityAlias()The method returns a system generated alias name starting with prefix "E" and ending with suffix "aliasCounter".protected voidresetAliasCounter()The method resets the alias counter value to "0".protected abstract voidsetResultsView(Object resultsView)The abstract method is implemented by specific JPQL context builder.
-
-
-
Method Detail
-
build
public abstract JPQLContext build() throws ODataJPAModelException, ODataJPARuntimeException
The abstract method is implemented by specific JPQL context builders to build JPQL Contexts. The build method makes use of information set into the context to built JPQL Context Types.- Returns:
- an instance of
JPQLContext - Throws:
ODataJPAModelExceptionODataJPARuntimeException
-
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
-
-