public class JoinInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
LEFTOUTER
flag of outer join type
|
static int |
RIGHTOUTER
flag of outer join type
|
Constructor and Description |
---|
JoinInfo(java.lang.String tableFrom,
java.lang.String columnFrom,
java.lang.String operator,
java.lang.String tableTo,
java.lang.String columnTo)
Constructs a Join definition of a Logi Report query.
|
JoinInfo(java.lang.String tableFrom,
java.lang.String columnFrom,
java.lang.String operator,
java.lang.String tableTo,
java.lang.String columnTo,
boolean isSQL92,
int outerJoin)
Constructs a Join definition of a Logi Report query.
|
Modifier and Type | Method and Description |
---|---|
void |
addJoinConditions(java.util.Vector<ExpressionInfo> conditions) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getColumnFrom()
Gets the name of the column from which the join links.
|
java.lang.String |
getColumnTo()
Gets the name of the column to which the join links.
|
java.lang.String |
getConditionLogic() |
java.util.Vector<ExpressionInfo> |
getJoinConditions() |
java.lang.String |
getOperator()
Gets the operator of the join.
|
int |
getOuterJoinType()
Gets the outer join type.
|
java.lang.String |
getTableFrom()
Gets the name of the table from which the join links.
|
java.lang.String |
getTableTo()
Gets the name of the table to which the join links.
|
boolean |
isSQL92()
Indicates whether or not the SQL92 standard will be applied to the join sentence.
|
void |
setColumnFrom(java.lang.String columnFrom)
Sets the name of the column from which the join links.
|
void |
setColumnTo(java.lang.String columnTo)
Sets the name of the column from which the join links.
|
void |
setConditionLogic(java.lang.String conditionLogic) |
void |
setIsSQL92(boolean isSQL92)
Indicates whether or not to apply SQL92 standard to the join sentence.
|
void |
setOperator(java.lang.String operator)
Sets the operator of the join.
|
void |
setOuterJoinType(int outerJoin)
Sets the join type of the outer join.
|
void |
setTableFrom(java.lang.String tableFrom)
Sets the name of the table from which the join links.
|
void |
setTableTo(java.lang.String tableTo)
Sets the name of the table to which the join links.
|
public static final int LEFTOUTER
public static final int RIGHTOUTER
public JoinInfo(java.lang.String tableFrom, java.lang.String columnFrom, java.lang.String operator, java.lang.String tableTo, java.lang.String columnTo)
tableFrom
- The name of the table from which the join links.columnFrom
- The name of the column from which the join links.operator
- The String operator of the join .tableTo
- The name of the table to which the join links.columnTo
- The name of the column to which the join links.public JoinInfo(java.lang.String tableFrom, java.lang.String columnFrom, java.lang.String operator, java.lang.String tableTo, java.lang.String columnTo, boolean isSQL92, int outerJoin)
tableFrom
- The name of the table from which the join links.columnFrom
- The name of the column from which the join links.operator
- The String operator of the join .tableTo
- The name of the table to which the join links.columnTo
- The name of the column to which the join links.isSQL92
- Indicates whether or not to apply SQL92 standard to the join sentence.
There are two kinds of join formats: SQL92 and Use'+'. outerJoin
- Indicates the join type of the outer join.
An outer join preserves these records in the result and replaces the missing values with nulls. Logi Report calls the join left (right) outer join if the records in the left (right) side table are preserved.LEFTOUTER
,
RIGHTOUTER
public java.lang.String getConditionLogic()
public void setConditionLogic(java.lang.String conditionLogic)
public void addJoinConditions(java.util.Vector<ExpressionInfo> conditions)
public java.util.Vector<ExpressionInfo> getJoinConditions()
public java.lang.String getTableFrom()
public java.lang.String getColumnFrom()
public java.lang.String getOperator()
public java.lang.String getTableTo()
public java.lang.String getColumnTo()
public void setTableFrom(java.lang.String tableFrom)
tableFrom
- The name of the table from which the join links.public void setColumnFrom(java.lang.String columnFrom)
columnFrom
- The name of the column from which the join links.public void setOperator(java.lang.String operator)
operator
- The operator's String value.public void setTableTo(java.lang.String tableTo)
tableTo
- The name of the table to which the join links.public void setColumnTo(java.lang.String columnTo)
columnTo
- The name of the column from which the join links.public void setIsSQL92(boolean isSQL92)
isSQL92
- Indicates whether or not to apply SQL92 standard to the join sentence.public boolean isSQL92()
false
if the SQL92 standard will be applied to the join sentence; false
otherwise.public void setOuterJoinType(int outerJoin)
outerJoin
- The type of the outer join.LEFTOUTER
,
RIGHTOUTER
public int getOuterJoinType()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object