| Modifier and Type | Field and Description |
|---|---|
| public static final int | FULL_JOIN
Specifies a full join |
| private boolean | |
| private boolean | |
| public static final int | INNER_JOIN
Specifies an inner join. |
| public static final int | LEFT_OUTER_JOIN
Specifies a left join. |
| public static final int | RIGHT_OUTER_JOIN
Specifies a right join. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | addCondition(String
The alias of the joined table alias, String[] The names of the columns which reference the joined table fkColumns, String[] The columns in the joined table being referenced pkColumns)Adds a condition to the join fragment. |
| public abstract boolean | Returns: true if the condition was addedThe fragment condition)Adds a free-form condition fragment |
| protected boolean | Returns: Returns true if the condition was added, false if the condition was already in 'on' string.The buffer to append the 'on' condition to. buffer, String The 'on' condition. on)Appends the 'on' condition to the buffer, returning true if the condition was added. |
| public abstract void | addCrossJoin(String
The name of the table to be joined tableName, String The alias to apply to the joined table alias)Adds a cross join to the specified table. |
| public void | |
| public abstract void | addJoin(String
The name of the table to be joined tableName, String The alias to apply to the joined table alias, String[] The names of the columns which reference the joined table fkColumns, String[] The columns in the joined table being referenced pkColumns, JoinType The type of join joinType)Adds a join. |
| public abstract void | addJoin(String
The name of the table to be joined tableName, String The alias to apply to the joined table alias, String[] The names of the columns which reference the joined table fkColumns, String[] The columns in the joined table being referenced pkColumns, JoinType The type of join joinType, String The additional ON fragment on)Adds a join, with an additional ON clause fragment |
| public void | addJoin(String
The name of the table to be joined tableName, String The alias to apply to the joined table alias, String[][] The names of the columns which reference the joined table fkColumns, String[] The columns in the joined table being referenced pkColumns, JoinType The type of join joinType, String The additional ON fragment on)Adds a join, with an additional ON clause fragment |
| public abstract void | |
| public abstract JoinFragment | |
| public boolean | Returns: True if the where fragment is from a filter condition.True if the where fragment is from a filter condition. |
| public boolean | Returns: true if the fragment contained theta joinsDetermine if the join fragment contained any theta-joins. |
| public void | |
| public void | |
| public abstract String | Returns: The FROM clause portion of this fragmentRender this fragment to its FROM clause portion |
| public abstract String | Returns: The WHERE clause portion of this fragmentRender this fragment to its WHERE clause portion |
| FULL_JOIN | back to summary |
|---|---|
| public static final int FULL_JOIN
Deprecated use Specifies a full join
| |
| hasFilterCondition | back to summary |
|---|---|
| private boolean hasFilterCondition | |
| hasThetaJoins | back to summary |
|---|---|
| private boolean hasThetaJoins | |
| INNER_JOIN | back to summary |
|---|---|
| public static final int INNER_JOIN
Deprecated use Specifies an inner join. | |
| LEFT_OUTER_JOIN | back to summary |
|---|---|
| public static final int LEFT_OUTER_JOIN
Deprecated use Specifies a left join. | |
| RIGHT_OUTER_JOIN | back to summary |
|---|---|
| public static final int RIGHT_OUTER_JOIN
Deprecated use Specifies a right join.
| |
| JoinFragment | back to summary |
|---|---|
| public JoinFragment() | |
| addCondition | back to summary |
|---|---|
| public abstract void addCondition(String alias, String[] fkColumns, String[] pkColumns) Adds a condition to the join fragment. | |
| addCondition | back to summary |
|---|---|
| public abstract boolean addCondition(String condition) Adds a free-form condition fragment
| |
| addCondition | back to summary |
|---|---|
| protected boolean addCondition(StringBuilder buffer, String on) Appends the 'on' condition to the buffer, returning true if the condition was added. Returns false if the 'on' condition was empty.
| |
| addCrossJoin | back to summary |
|---|---|
| public abstract void addCrossJoin(String tableName, String alias) Adds a cross join to the specified table. | |
| addFragment | back to summary |
|---|---|
| public void addFragment(JoinFragment ojf) Adds another join fragment to this one.
| |
| addJoin | back to summary |
|---|---|
| public abstract void addJoin(String tableName, String alias, String[] fkColumns, String[] pkColumns, JoinType joinType) Adds a join. | |
| addJoin | back to summary |
|---|---|
| public abstract void addJoin(String tableName, String alias, String[] fkColumns, String[] pkColumns, JoinType joinType, String on) Adds a join, with an additional ON clause fragment
| |
| addJoin | back to summary |
|---|---|
| public void addJoin(String tableName, String alias, String[][] fkColumns, String[] pkColumns, JoinType joinType, String on) Adds a join, with an additional ON clause fragment
| |
| addJoins | back to summary |
|---|---|
| public abstract void addJoins(String fromFragment, String whereFragment) Free-form form of adding theta-style joins taking the necessary FROM and WHERE clause fragments | |
| copy | back to summary |
|---|---|
| public abstract JoinFragment copy() Make a copy.
| |
| hasFilterCondition | back to summary |
|---|---|
| public boolean hasFilterCondition() True if the where fragment is from a filter condition.
| |
| hasThetaJoins | back to summary |
|---|---|
| public boolean hasThetaJoins() Determine if the join fragment contained any theta-joins.
| |
| setHasFilterCondition | back to summary |
|---|---|
| public void setHasFilterCondition(boolean b) | |
| setHasThetaJoins | back to summary |
|---|---|
| public void setHasThetaJoins(boolean hasThetaJoins) | |
| toFromFragmentString | back to summary |
|---|---|
| public abstract String toFromFragmentString() Render this fragment to its FROM clause portion
| |
| toWhereFragmentString | back to summary |
|---|---|
| public abstract String toWhereFragmentString() Render this fragment to its WHERE clause portion
| |