org.babyfish.jimmer.sql.ast.query.MutableSubQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jimmer-sql Show documentation
Show all versions of jimmer-sql Show documentation
A revolutionary ORM framework for both java and kotlin
The newest version!
package org.babyfish.jimmer.sql.ast.query;
import org.babyfish.jimmer.lang.OldChain;
import org.babyfish.jimmer.sql.ast.Expression;
import org.babyfish.jimmer.sql.ast.Predicate;
import org.babyfish.jimmer.sql.ast.query.selectable.SubSelectable;
import java.util.List;
import java.util.function.Supplier;
public interface MutableSubQuery extends MutableQuery, SubSelectable {
@OldChain
@Override
MutableSubQuery where(Predicate... predicates);
@OldChain
@Override
default MutableSubQuery whereIf(boolean condition, Predicate predicate) {
if (condition) {
where(predicate);
}
return this;
}
@OldChain
@Override
default MutableSubQuery whereIf(boolean condition, Supplier block) {
if (condition) {
where(block.get());
}
return this;
}
@OldChain
@Override
MutableSubQuery orderBy(Expression> ... expressions);
@OldChain
@Override
default MutableSubQuery orderByIf(boolean condition, Expression>... expressions) {
if (condition) {
orderBy(expressions);
}
return this;
}
@OldChain
@Override
MutableSubQuery orderBy(Order ... orders);
@OldChain
@Override
default MutableSubQuery orderByIf(boolean condition, Order... orders) {
if (condition) {
orderBy(orders);
}
return this;
}
@OldChain
@Override
MutableSubQuery orderBy(List orders);
@OldChain
@Override
default MutableSubQuery orderByIf(boolean condition, List orders) {
if (condition) {
orderBy(orders);
}
return this;
}
@OldChain
@Override
MutableSubQuery groupBy(Expression>... expressions);
@OldChain
@Override
MutableSubQuery having(Predicate... predicates);
Predicate exists();
Predicate notExists();
}