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

com.easy.query.api4j.select.extension.queryable6.SQLOrderable6 Maven / Gradle / Ivy

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

import com.easy.query.api4j.select.Queryable6;
import com.easy.query.api4j.sql.SQLOrderBySelector;
import com.easy.query.api4j.sql.impl.SQLOrderByColumnSelectorImpl;
import com.easy.query.core.common.tuple.Tuple6;
import com.easy.query.core.expression.lambda.SQLExpression1;
import com.easy.query.core.expression.lambda.SQLExpression6;

/**
 * create time 2023/8/18 09:44
 * 文件说明
 *
 * @author xuejiaming
 */
public interface SQLOrderable6 extends ClientQueryable6Available, Queryable6Available {

    default Queryable6 orderByAsc(SQLExpression6, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector> selectExpression) {
        getClientQueryable6().orderByAsc((selector1, selector2, selector3, selector4, selector5, selector6) -> {
            selectExpression.apply(new SQLOrderByColumnSelectorImpl<>(selector1), new SQLOrderByColumnSelectorImpl<>(selector2), new SQLOrderByColumnSelectorImpl<>(selector3), new SQLOrderByColumnSelectorImpl<>(selector4), new SQLOrderByColumnSelectorImpl<>(selector5), new SQLOrderByColumnSelectorImpl<>(selector6));
        });
        return getQueryable6();
    }

    default Queryable6 orderByAsc(boolean condition, SQLExpression6, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector> selectExpression) {
        getClientQueryable6().orderByAsc(condition, (selector1, selector2, selector3, selector4, selector5, selector6) -> {
            selectExpression.apply(new SQLOrderByColumnSelectorImpl<>(selector1), new SQLOrderByColumnSelectorImpl<>(selector2), new SQLOrderByColumnSelectorImpl<>(selector3), new SQLOrderByColumnSelectorImpl<>(selector4), new SQLOrderByColumnSelectorImpl<>(selector5), new SQLOrderByColumnSelectorImpl<>(selector6));
        });
        return getQueryable6();
    }

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

    default Queryable6 orderByAscMerge(boolean condition, SQLExpression1, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector>> selectExpression) {
        return orderByAsc(condition, (t1, t2, t3, t4, t5, t6) -> {
            selectExpression.apply(new Tuple6<>(t1, t2, t3, t4, t5, t6));
        });
    }

    default Queryable6 orderByDesc(SQLExpression6, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector> selectExpression) {
        return orderByDesc(true, selectExpression);
    }

    default Queryable6 orderByDesc(boolean condition, SQLExpression6, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector> selectExpression) {
        getClientQueryable6().orderByDesc(condition, (selector1, selector2, selector3, selector4, selector5, selector6) -> {
            selectExpression.apply(new SQLOrderByColumnSelectorImpl<>(selector1), new SQLOrderByColumnSelectorImpl<>(selector2), new SQLOrderByColumnSelectorImpl<>(selector3), new SQLOrderByColumnSelectorImpl<>(selector4), new SQLOrderByColumnSelectorImpl<>(selector5), new SQLOrderByColumnSelectorImpl<>(selector6));
        });
        return getQueryable6();
    }

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

    default Queryable6 orderByDescMerge(boolean condition, SQLExpression1, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector, SQLOrderBySelector>> selectExpression) {
        return orderByDesc(condition, (t1, t2, t3, t4, t5, t6) -> {
            selectExpression.apply(new Tuple6<>(t1, t2, t3, t4, t5, t6));
        });
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy