public class QueryJoinFragment extends JoinFragment
A join that appears in a translated HQL query
FULL_JOIN, INNER_JOIN, LEFT_OUTER_JOIN, RIGHT_OUTER_JOIN| Constructor and Description |
|---|
QueryJoinFragment(Dialect dialect,
boolean useThetaStyleInnerJoins) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCondition(String condition)
Add the condition string to the join fragment.
|
void |
addCondition(String alias,
String[][] fkColumns,
String[] pkColumns) |
void |
addCondition(String alias,
String[] columns,
String condition) |
void |
addCondition(String alias,
String[] fkColumns,
String[] pkColumns)
Adds a condition to the join fragment.
|
void |
addCrossJoin(String tableName,
String alias)
Adds a cross join to the specified table.
|
void |
addFromFragmentString(String fromFragmentString) |
void |
addJoin(String tableName,
String alias,
String[][] fkColumns,
String[] pkColumns,
JoinType joinType) |
void |
addJoin(String tableName,
String alias,
String[][] fkColumns,
String[] pkColumns,
JoinType joinType,
String on)
Adds a join, with an additional ON clause fragment
|
void |
addJoin(String tableName,
String alias,
String[] fkColumns,
String[] pkColumns,
JoinType joinType)
Adds a join.
|
void |
addJoin(String tableName,
String alias,
String[] fkColumns,
String[] pkColumns,
JoinType joinType,
String on)
Adds a join, with an additional ON clause fragment
|
void |
addJoins(String fromFragment,
String whereFragment)
Free-form form of adding theta-style joins taking the necessary FROM and WHERE clause fragments
|
void |
clearWherePart() |
JoinFragment |
copy()
Make a copy.
|
String |
toFromFragmentString()
Render this fragment to its FROM clause portion
|
String |
toWhereFragmentString()
Render this fragment to its WHERE clause portion
|
addCondition, addFragment, hasFilterCondition, hasThetaJoins, setHasFilterCondition, setHasThetaJoinspublic QueryJoinFragment(Dialect dialect, boolean useThetaStyleInnerJoins)
public void addJoin(String tableName, String alias, String[] fkColumns, String[] pkColumns, JoinType joinType)
JoinFragmentAdds a join.
addJoin in class JoinFragmenttableName - The name of the table to be joinedalias - The alias to apply to the joined tablefkColumns - The names of the columns which reference the joined tablepkColumns - The columns in the joined table being referencedjoinType - The type of joinpublic void addJoin(String tableName, String alias, String[] fkColumns, String[] pkColumns, JoinType joinType, String on)
JoinFragmentAdds a join, with an additional ON clause fragment
addJoin in class JoinFragmenttableName - The name of the table to be joinedalias - The alias to apply to the joined tablefkColumns - The names of the columns which reference the joined tablepkColumns - The columns in the joined table being referencedjoinType - The type of joinon - The additional ON fragmentpublic void addJoin(String tableName, String alias, String[][] fkColumns, String[] pkColumns, JoinType joinType)
public void addJoin(String tableName, String alias, String[][] fkColumns, String[] pkColumns, JoinType joinType, String on)
JoinFragmentAdds a join, with an additional ON clause fragment
addJoin in class JoinFragmenttableName - The name of the table to be joinedalias - The alias to apply to the joined tablefkColumns - The names of the columns which reference the joined tablepkColumns - The columns in the joined table being referencedjoinType - The type of joinon - The additional ON fragmentpublic String toFromFragmentString()
JoinFragmentRender this fragment to its FROM clause portion
toFromFragmentString in class JoinFragmentpublic String toWhereFragmentString()
JoinFragmentRender this fragment to its WHERE clause portion
toWhereFragmentString in class JoinFragmentpublic void addJoins(String fromFragment, String whereFragment)
JoinFragmentFree-form form of adding theta-style joins taking the necessary FROM and WHERE clause fragments
addJoins in class JoinFragmentfromFragment - The FROM clause fragmentwhereFragment - The WHERE clause fragmentpublic JoinFragment copy()
JoinFragmentMake a copy.
copy in class JoinFragmentpublic void addCrossJoin(String tableName, String alias)
JoinFragmentAdds a cross join to the specified table.
addCrossJoin in class JoinFragmenttableName - The name of the table to be joinedalias - The alias to apply to the joined tablepublic void addCondition(String alias, String[] fkColumns, String[] pkColumns)
JoinFragmentAdds a condition to the join fragment.
addCondition in class JoinFragmentalias - The alias of the joined tablefkColumns - The names of the columns which reference the joined tablepkColumns - The columns in the joined table being referencedpublic boolean addCondition(String condition)
Add the condition string to the join fragment.
addCondition in class JoinFragmentcondition - public void addFromFragmentString(String fromFragmentString)
public void clearWherePart()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.