All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.babyfish.jimmer.sql.ast.query.MutableQuery Maven / Gradle / Ivy

There is a newer version: 0.9.19
Show 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.table.Table;

import java.util.List;

public interface MutableQuery extends Sortable {

    @OldChain
    @Override
    MutableQuery orderBy(Expression... expressions);

    @OldChain
    @Override
    default MutableQuery orderByIf(boolean condition, Expression... expressions) {
        if (condition) {
            orderBy(expressions);
        }
        return this;
    }

    @OldChain
    @Override
    MutableQuery orderBy(Order... orders);

    @OldChain
    @Override
    default MutableQuery orderByIf(boolean condition, Order... orders) {
        if (condition) {
            orderBy(orders);
        }
        return this;
    }

    @OldChain
    @Override
    MutableQuery orderBy(List orders);

    @OldChain
    @Override
    default MutableQuery orderByIf(boolean condition, List orders) {
        if (condition) {
            orderBy(orders);
        }
        return this;
    }

    @OldChain
    MutableQuery groupBy(Expression ... expressions);

    @OldChain
    MutableQuery having(Predicate ... predicates);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy