forked from my2iu/Jinq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Scala support for LEFT OUTER JOIN...ON queries.
- Loading branch information
Ming
committed
Apr 23, 2016
1 parent
6abd693
commit 1bf4e95
Showing
5 changed files
with
126 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
jinq-jpa-scala/src/main/java/org/jinq/jpa/transform/ScalaOuterJoinOnTransform.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.jinq.jpa.transform; | ||
|
||
import org.jinq.jpa.jpqlquery.RowReader; | ||
import org.jinq.jpa.jpqlquery.ScalaTupleRowReader; | ||
|
||
public class ScalaOuterJoinOnTransform extends OuterJoinOnTransform | ||
{ | ||
public ScalaOuterJoinOnTransform(JPQLQueryTransformConfiguration config) | ||
{ | ||
super(config, true, false); | ||
} | ||
|
||
@Override | ||
protected <U> RowReader<U> createPairReader(RowReader<?> a, RowReader<?> b) | ||
{ | ||
return ScalaTupleRowReader.createReaderForTuple(ScalaTupleRowReader.TUPLE2_CLASS, a, b); | ||
} | ||
|
||
@Override | ||
public String getTransformationTypeCachingTag() | ||
{ | ||
return ScalaOuterJoinOnTransform.class.getName(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters