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

com.easy.query.api4j.select.extension.queryable.SQLUnionable1 Maven / Gradle / Ivy

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

import com.easy.query.api4j.select.Queryable;

import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;

/**
 * create time 2023/8/17 11:03
 * 文件说明
 *
 * @author xuejiaming
 */
public interface SQLUnionable1 {
    default Queryable union(Queryable unionQueryable) {
        return union(Collections.singletonList(unionQueryable));
    }

    default Queryable union(Queryable unionQueryable1, Queryable unionQueryable2) {
        return union(Arrays.asList(unionQueryable1, unionQueryable2));
    }

    default Queryable union(Queryable unionQueryable1, Queryable unionQueryable2, Queryable unionQueryable3) {
        return union(Arrays.asList(unionQueryable1, unionQueryable2, unionQueryable3));
    }

    Queryable union(Collection> unionQueries);

    default Queryable unionAll(Queryable unionQueryable) {
        return unionAll(Collections.singletonList(unionQueryable));
    }

    default Queryable unionAll(Queryable unionQueryable1, Queryable unionQueryable2) {
        return unionAll(Arrays.asList(unionQueryable1, unionQueryable2));
    }

    default Queryable unionAll(Queryable unionQueryable1, Queryable unionQueryable2, Queryable unionQueryable3) {
        return unionAll(Arrays.asList(unionQueryable1, unionQueryable2, unionQueryable3));
    }

    Queryable unionAll(Collection> unionQueries);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy