Java Code Examples for com.alibaba.druid.sql.ast.statement.SQLJoinTableSource#JoinType

The following examples show how to use com.alibaba.druid.sql.ast.statement.SQLJoinTableSource#JoinType . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SqlParser.java    From elasticsearch-sql with Apache License 2.0 5 votes vote down vote up
private JoinSelect createBasicJoinSelectAccordingToTableSource(SQLJoinTableSource joinTableSource) throws SqlParseException {
    JoinSelect joinSelect = new JoinSelect();
    if (joinTableSource.getCondition() != null) {
        Where where = Where.newInstance();
        WhereParser whereParser = new WhereParser(this, joinTableSource.getCondition());
        whereParser.parseWhere(joinTableSource.getCondition(), where);
        joinSelect.setConnectedWhere(where);
    }
    SQLJoinTableSource.JoinType joinType = joinTableSource.getJoinType();
    joinSelect.setJoinType(joinType);
    return joinSelect;
}
 
Example 2
Source File: JoinRequestBuilder.java    From elasticsearch-sql with Apache License 2.0 4 votes vote down vote up
public SQLJoinTableSource.JoinType getJoinType() {
    return joinType;
}
 
Example 3
Source File: JoinRequestBuilder.java    From elasticsearch-sql with Apache License 2.0 4 votes vote down vote up
public void setJoinType(SQLJoinTableSource.JoinType joinType) {
    this.joinType = joinType;
}
 
Example 4
Source File: JoinSelect.java    From elasticsearch-sql with Apache License 2.0 4 votes vote down vote up
public SQLJoinTableSource.JoinType getJoinType() {
    return joinType;
}
 
Example 5
Source File: JoinSelect.java    From elasticsearch-sql with Apache License 2.0 4 votes vote down vote up
public void setJoinType(SQLJoinTableSource.JoinType joinType) {
    this.joinType = joinType;
}