public class JPAJoinClause extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JPAJoinClause.JOIN
Enumerated 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 and Description |
---|
JPAJoinClause(String entityName,
String entityAlias,
String entityRelationShip,
String entityRelationShipAlias,
String joinCondition,
JPAJoinClause.JOIN joinType)
Constructor for creating elements of JPA Join Clause container.
|
Modifier and Type | Method and Description |
---|---|
String |
getEntityAlias()
The method returns Java Persistence Entity alias name participating in
the join.
|
String |
getEntityName()
The method returns Java Persistence Entity participating in the join.
|
String |
getEntityRelationShip()
The method returns Java Persistence Entity Relationship name
participating in the join.
|
String |
getEntityRelationShipAlias()
The method returns Java Persistence Entity Relationship Alias name
participating in the join.
|
String |
getJoinCondition()
The method returns a join condition that can be used for building JPQL
join statements.
|
JPAJoinClause.JOIN |
getJoinType()
The method returns the type of
JPAJoinClause.JOIN that
can be used for building JPQL join statements. |
public JPAJoinClause(String entityName, String entityAlias, String entityRelationShip, String entityRelationShipAlias, String joinCondition, JPAJoinClause.JOIN joinType)
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 join JPAJoinClause.JOIN
to executepublic String getEntityName()
public String getEntityAlias()
public String getEntityRelationShip()
public String getEntityRelationShipAlias()
public String getJoinCondition()
public JPAJoinClause.JOIN getJoinType()
JPAJoinClause.JOIN
that
can be used for building JPQL join statements.Copyright © 2013-2017 The Apache Software Foundation. All Rights Reserved.