| Modifier and Type | Field and Description |
|---|---|
| private StringBuilder | |
| private StringBuilder |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addCondition(String
The alias to apply to column(s) alias, String[] The columns to apply restriction columns, String The restriction condition condition)Adds a condition to the join fragment. |
| public 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)Implements abstract org. |
| public boolean | addCondition(String
The fragment condition)Implements abstract org. |
| public void | addCrossJoin(String
The name of the table to be joined tableName, String The alias to apply to the joined table alias)Implements abstract org. |
| public void | addFromFragmentString(String
The join fragment string fromFragmentString)Adds an externally built join fragment. |
| public void | addJoin(String
The name of the table being joined. tableName, String The alias applied to the table being joined. alias, String[] The columns (from the table being joined) used to define the join-restriction (the ON) fkColumns, String[] The columns (from the table being joined to) used to define the join-restriction (the ON) pkColumns, JoinType The type of join to produce (INNER, etc). joinType)Implements abstract org. |
| public void | addJoin(String
The name of the table being joined (the RHS table). rhsTableName, String The alias applied to the table being joined (the alias for the RHS table). rhsAlias, String[] The columns (from the table being joined) used to define the join-restriction (the ON). These
are the LHS columns, and are expected to be qualified. lhsColumns, String[] The columns (from the table being joined to) used to define the join-restriction (the ON). These
are the RHS columns and are expected to *not* be qualified. rhsColumns, JoinType The type of join to produce (INNER, etc). joinType, String Any extra join restrictions on)Implements abstract org. |
| public void | addJoin(String
The name of the table to be joined rhsTableName, String The alias to apply to the joined table rhsAlias, String[][] The names of the columns which reference the joined table lhsColumns, String[] The columns in the joined table being referenced rhsColumns, JoinType The type of join joinType, String The additional ON fragment on)Overrides org. |
| public void | addJoins(String
The FROM clause fragment fromFragment, String The WHERE clause fragment whereFragment)Implements abstract org. |
| public JoinFragment | |
| public String | toFromFragmentString()
Implements abstract org. |
| public String | toWhereFragmentString()
Implements abstract org. |
| buffer | back to summary |
|---|---|
| private StringBuilder buffer | |
| conditions | back to summary |
|---|---|
| private StringBuilder conditions | |
| ANSIJoinFragment | back to summary |
|---|---|
| public ANSIJoinFragment() | |
| addCondition | back to summary |
|---|---|
| public void addCondition(String alias, String[] columns, String condition) Adds a condition to the join fragment. For each given column a predicate is built in the form:
| |
| addCondition | back to summary |
|---|---|
| public void addCondition(String alias, String[] fkColumns, String[] pkColumns) Implements abstract org. Doc from org. Adds a condition to the join fragment. | |
| addCondition | back to summary |
|---|---|
| public boolean addCondition(String condition) Implements abstract org. Doc from org. Adds a free-form condition fragment | |
| addCrossJoin | back to summary |
|---|---|
| public void addCrossJoin(String tableName, String alias) Implements abstract org. Doc from org. Adds a cross join to the specified table. | |
| addFromFragmentString | back to summary |
|---|---|
| public void addFromFragmentString(String fromFragmentString) Adds an externally built join fragment.
| |
| addJoin | back to summary |
|---|---|
| public void addJoin(String tableName, String alias, String[] fkColumns, String[] pkColumns, JoinType joinType) Implements abstract org. Adds a join, represented by the given information, to the fragment.
| |
| addJoin | back to summary |
|---|---|
| public void addJoin(String rhsTableName, String rhsAlias, String[] lhsColumns, String[] rhsColumns, JoinType joinType, String on) Implements abstract org. Adds a join, represented by the given information, to the fragment.
| |
| addJoin | back to summary |
|---|---|
| public void addJoin(String rhsTableName, String rhsAlias, String[][] lhsColumns, String[] rhsColumns, JoinType joinType, String on) Overrides org. Doc from org. Adds a join, with an additional ON clause fragment
| |
| addJoins | back to summary |
|---|---|
| public void addJoins(String fromFragment, String whereFragment) Implements abstract org. Doc from org. Free-form form of adding theta-style joins taking the necessary FROM and WHERE clause fragments | |
| copy | back to summary |
|---|---|
| public JoinFragment copy() Implements abstract org. Doc from org. Make a copy.
| |
| toFromFragmentString | back to summary |
|---|---|
| public String toFromFragmentString() Implements abstract org. Doc from org. Render this fragment to its FROM clause portion | |
| toWhereFragmentString | back to summary |
|---|---|
| public String toWhereFragmentString() Implements abstract org. Doc from org. Render this fragment to its WHERE clause portion | |