public class FromElement extends Object implements Serializable
Constructor and Description |
---|
FromElement(String tableName)
Constructor with join type null and joinCondition null.
|
FromElement(String fromExpression,
JoinType joinType,
PreparedStatementPart joinCondition)
Constructor.
|
FromElement(String fromExpression,
JoinType joinType,
String joinCondition)
Constructor.
|
FromElement(String fromExpression,
JoinType joinType,
String joinCondition,
List<Object> preparedStatementReplacements)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getFromExpression()
Returns the fromExpression, which might e.g.
|
String |
getJoinCondition()
Returns the join condition.
|
JoinType |
getJoinType()
Returns the join type.
|
List<Object> |
getPreparedStatementReplacements()
Returns the replacements for prepared statement placeholders in the
fromExpression.
|
int |
hashCode() |
String |
toString()
Returns a SQL representation of the element.
|
public FromElement(String tableName)
tableName
- the table name, might contain an appended alias name, e.g.
table_1
table_1 alias_for_table_1
public FromElement(String fromExpression, JoinType joinType, String joinCondition)
fromExpression
- the expression to add to the from clause,
e.g. a simple table name or a table name with an alias,
table_1
table_1 alias_for_table_1
joinType
- the type of the join, e.g. JoinType.LEFT_JOIN,
or null if no excplicit join is wantedjoinCondition
- the join condition,
e.g. table_a.id = table_b.a_id,
or null if no explicit join is wanted
(In this case, the join condition is appended to the
whereClause instead)public FromElement(String fromExpression, JoinType joinType, String joinCondition, List<Object> preparedStatementReplacements)
fromExpression
- the expression to add to the from clause,
e.g. a simple table name or a table name with an alias,
table_1
table_1 alias_for_table_1
joinType
- the type of the join, e.g. JoinType.LEFT_JOIN,
or null if no explicit join is wantedjoinCondition
- the join condition,
e.g. table_a.id = table_b.a_id,
or null if no explicit join is wanted
(In this case, the join condition is appended to the
whereClause instead)preparedStatementReplacements
- the replacements for placeholders
which might occur in the fromExpression, may be null.public FromElement(String fromExpression, JoinType joinType, PreparedStatementPart joinCondition)
fromExpression
- the expression to add to the from clause,
e.g. a simple table name or a table name with an alias,
table_1
table_1 alias_for_table_1
joinType
- the type of the join, e.g. JoinType.LEFT_JOIN,
or null if no explicit join is wantedjoinCondition
- the join condition,
e.g. table_a.id = table_b.a_id, not null.public String getJoinCondition()
public JoinType getJoinType()
public String getFromExpression()
table_1
table_1 alias_for_table_1
public List<Object> getPreparedStatementReplacements()
public String toString()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.