Class JPQLContext.JPQLContextBuilder
java.lang.Object
org.apache.olingo.odata2.jpa.processor.api.jpql.JPQLContext.JPQLContextBuilder
- Enclosing class:
JPQLContext
The abstract class is extended by specific JPQLContext builder for
building JPQLContexts.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intalias counter is an integer counter that is incremented by "1" for every new alias name generation.protected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract JPQLContextbuild()The abstract method is implemented by specific JPQL context builders to build JPQL Contexts.protected StringThe method returns a system generated alias name starting with prefix "E" and ending with suffix "aliasCounter".protected voidThe method resets the alias counter value to "0".protected abstract voidsetResultsView(Object resultsView) The abstract method is implemented by specific JPQL context builder.
-
Field Details
-
aliasCounter
protected int aliasCounteralias 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 Details
-
JPQLContextBuilder
protected JPQLContextBuilder()
-
-
Method Details
-
build
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:
ODataJPAModelException- Caso ocorra exceçãoODataJPARuntimeException- Caso ocorra exceção
-
setResultsView
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
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
-