Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
usfalami committed Sep 11, 2024
1 parent b8788e8 commit b9bc158
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/org/usf/jquery/core/ViewJoin.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,15 @@ public String sql(QueryContext ctx) {
s += " ON " + Stream.of(filters)
.map(f-> f.sql(val))
.collect(joining(AND.sql()));
}
} //else cross join
return s;
}

@Override
public String toString() {
return sql(addWithValue());
}

public static ViewJoin innerJoin(DBView view, DBFilter... filters) {
return new ViewJoin(INNER, view, filters);
}
Expand All @@ -74,9 +79,4 @@ public static ViewJoin fullJoin(DBView view, DBFilter... filters) {
public static ViewJoin crossJoin(DBView view, DBFilter... filters) {
return new ViewJoin(CROSS, view, filters);
}

@Override
public String toString() {
return sql(addWithValue());
}
}

0 comments on commit b9bc158

Please sign in to comment.