org.jinq.jpa.transform.ScalaJoinTransform Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jinq-jpa-scala Show documentation
Show all versions of jinq-jpa-scala Show documentation
Scala version of Jinq's functional-style queries for JPA
The newest version!
package org.jinq.jpa.transform;
import org.jinq.jpa.jpqlquery.RowReader;
import org.jinq.jpa.jpqlquery.ScalaTupleRowReader;
public class ScalaJoinTransform extends JoinTransform
{
public ScalaJoinTransform(JPQLQueryTransformConfiguration config, boolean withSource, boolean joinAsPairs)
{
super(config, withSource, joinAsPairs, true, false);
}
public ScalaJoinTransform(JPQLQueryTransformConfiguration config)
{
this(config, false, true);
}
@Override
protected RowReader createPairReader(RowReader> a, RowReader> b)
{
return ScalaTupleRowReader.createReaderForTuple(ScalaTupleRowReader.TUPLE2_CLASS, a, b);
}
@Override
public String getTransformationTypeCachingTag()
{
return ScalaJoinTransform.class.getName();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy