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

com.easy.query.api4j.select.extension.queryable10.SQLOrderable10 Maven / Gradle / Ivy

There is a newer version: 2.3.3
Show newest version
package com.easy.query.api4j.select.extension.queryable10;

import com.easy.query.api4j.select.Queryable10;
import com.easy.query.api4j.sql.SQLOrderBySelector;
import com.easy.query.api4j.sql.impl.SQLOrderByColumnSelectorImpl;
import com.easy.query.core.common.tuple.Tuple10;
import com.easy.query.core.expression.lambda.SQLExpression1;
import com.easy.query.core.expression.lambda.SQLExpression10;

/**
 * create time 2023/8/18 09:48
 * 文件说明
 *
 * @author xuejiaming
 */
public interface SQLOrderable10 extends ClientQueryable10Available, Queryable10Available {

    default Queryable10 orderByAsc(SQLExpression10, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector> selectExpression) {
        getClientQueryable10().orderByAsc((selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8, selector9, selector10) -> {
            selectExpression.apply(new SQLOrderByColumnSelectorImpl<>(selector1), new SQLOrderByColumnSelectorImpl<>(selector2), new SQLOrderByColumnSelectorImpl<>(selector3), new SQLOrderByColumnSelectorImpl<>(selector4), new SQLOrderByColumnSelectorImpl<>(selector5), new SQLOrderByColumnSelectorImpl<>(selector6), new SQLOrderByColumnSelectorImpl<>(selector7), new SQLOrderByColumnSelectorImpl<>(selector8), new SQLOrderByColumnSelectorImpl<>(selector9), new SQLOrderByColumnSelectorImpl<>(selector10));
        });
        return getQueryable10();
    }

    default Queryable10 orderByAsc(boolean condition, SQLExpression10, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector> selectExpression) {
        getClientQueryable10().orderByAsc(condition, (selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8, selector9, selector10) -> {
            selectExpression.apply(new SQLOrderByColumnSelectorImpl<>(selector1), new SQLOrderByColumnSelectorImpl<>(selector2), new SQLOrderByColumnSelectorImpl<>(selector3), new SQLOrderByColumnSelectorImpl<>(selector4), new SQLOrderByColumnSelectorImpl<>(selector5), new SQLOrderByColumnSelectorImpl<>(selector6), new SQLOrderByColumnSelectorImpl<>(selector7), new SQLOrderByColumnSelectorImpl<>(selector8), new SQLOrderByColumnSelectorImpl<>(selector9), new SQLOrderByColumnSelectorImpl<>(selector10));
        });
        return getQueryable10();
    }

    default Queryable10 orderByAscMerge(SQLExpression1, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector>> selectExpression) {
        return orderByAscMerge(true, selectExpression);
    }

    default Queryable10 orderByAscMerge(boolean condition, SQLExpression1, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector>> selectExpression) {
        return orderByAsc(condition, (t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) -> {
            selectExpression.apply(new Tuple10<>(t1, t2, t3, t4, t5, t6, t7, t8, t9, t10));
        });
    }

    default Queryable10 orderByDesc(SQLExpression10, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector> selectExpression) {
        return orderByDesc(true, selectExpression);
    }

    default Queryable10 orderByDesc(boolean condition, SQLExpression10, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector> selectExpression) {
        getClientQueryable10().orderByDesc(condition, (selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8, selector9, selector10) -> {
            selectExpression.apply(new SQLOrderByColumnSelectorImpl<>(selector1), new SQLOrderByColumnSelectorImpl<>(selector2), new SQLOrderByColumnSelectorImpl<>(selector3), new SQLOrderByColumnSelectorImpl<>(selector4), new SQLOrderByColumnSelectorImpl<>(selector5), new SQLOrderByColumnSelectorImpl<>(selector6), new SQLOrderByColumnSelectorImpl<>(selector7), new SQLOrderByColumnSelectorImpl<>(selector8), new SQLOrderByColumnSelectorImpl<>(selector9), new SQLOrderByColumnSelectorImpl<>(selector10));
        });
        return getQueryable10();
    }

    default Queryable10 orderByDescMerge(SQLExpression1, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector>> selectExpression) {
        return orderByDescMerge(true, selectExpression);
    }

    default Queryable10 orderByDescMerge(boolean condition, SQLExpression1, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector>> selectExpression) {
        return orderByDesc(condition, (t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) -> {
            selectExpression.apply(new Tuple10<>(t1, t2, t3, t4, t5, t6, t7, t8, t9, t10));
        });
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy