
org.jinq.jpa.jpqlquery.ParameterAsQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jinq-jpa-impl Show documentation
Show all versions of jinq-jpa-impl Show documentation
Implementation classes for Jinq functional-style queries for JPA
The newest version!
package org.jinq.jpa.jpqlquery;
import java.util.List;
public class ParameterAsQuery extends JPQLQuery
{
public ColumnExpressions cols;
@Override
public String getQueryString()
{
throw new IllegalArgumentException("ParameterAsQuery should only be used internally and not for generating queries");
}
@Override
public List getQueryParameters()
{
throw new IllegalArgumentException("ParameterAsQuery should only be used internally and not for generating queries");
}
@Override
public RowReader getRowReader()
{
return cols.reader;
}
@Override public boolean isSelectFromWhere()
{
return false;
}
@Override public boolean isSelectOnly()
{
return false;
}
@Override public boolean isSelectFromWhereGroupHaving()
{
return false;
}
@Override public boolean canSelectWhere()
{
return false;
}
@Override public boolean canSelectHaving()
{
return false;
}
@Override public boolean canSort()
{
return false;
}
@Override public boolean canDistinct()
{
return false;
}
@Override public boolean canAggregate()
{
return false;
}
@Override public boolean canUnsortAggregate()
{
return false;
}
@Override public boolean isValidSubquery()
{
return true;
}
public ParameterAsQuery shallowCopy()
{
ParameterAsQuery copy = new ParameterAsQuery<>();
copy.cols = cols;
return copy;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy