Class JPAJoinClause
java.lang.Object
org.apache.olingo.odata2.jpa.processor.api.access.JPAJoinClause
A container for Java Persistence Join Clause that can be used for building
JPQL statements. The container has two main elements
- Java Persistence Entity - is the source entity participating in the
join.
- Java Persistence Entity Relationship - is the entity relationship of the source entity participating in the join.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumerated list of possible Joins in JPQL LEFT - left outer join FETCH - enable fetching of an association as a side effect of the execution of a query INNER - inner join -
Constructor Summary
ConstructorsConstructorDescriptionJPAJoinClause(String entityName, String entityAlias, String entityRelationShip, String entityRelationShipAlias, String joinCondition, JPAJoinClause.JOIN joinType) Constructor for creating elements of JPA Join Clause container. -
Method Summary
Modifier and TypeMethodDescriptionThe method returns Java Persistence Entity alias name participating in the join.The method returns Java Persistence Entity participating in the join.The method returns Java Persistence Entity Relationship name participating in the join.The method returns Java Persistence Entity Relationship Alias name participating in the join.The method returns a join condition that can be used for building JPQL join statements.The method returns the type ofJPAJoinClause.JOINthat can be used for building JPQL join statements.
-
Constructor Details
-
JPAJoinClause
public JPAJoinClause(String entityName, String entityAlias, String entityRelationShip, String entityRelationShipAlias, String joinCondition, JPAJoinClause.JOIN joinType) Constructor for creating elements of JPA Join Clause container.- Parameters:
entityName- is the name of the JPA entity participating in the joinentityAlias- is the alias for the JPA entity participating in the joinentityRelationShip- is the name of the JPA entity relationship participating in the joinentityRelationShipAlias- is the alias name of the JPA entity relationship participating in the joinjoinCondition- is the condition on which the joins should occurjoinType- is the type of joinJPAJoinClause.JOINto execute
-
-
Method Details
-
getEntityName
The method returns Java Persistence Entity participating in the join.- Returns:
- an entity name
-
getEntityAlias
The method returns Java Persistence Entity alias name participating in the join.- Returns:
- a entity alias name
-
getEntityRelationShip
The method returns Java Persistence Entity Relationship name participating in the join.- Returns:
- entity alias relationship
-
getEntityRelationShipAlias
The method returns Java Persistence Entity Relationship Alias name participating in the join.- Returns:
- entity entity relationship alias
-
getJoinCondition
The method returns a join condition that can be used for building JPQL join statements.- Returns:
- a join condition
-
getJoinType
The method returns the type ofJPAJoinClause.JOINthat can be used for building JPQL join statements.- Returns:
- join type
-