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

net.dongliu.dbutils.builder.SQLNode Maven / Gradle / Ivy

package net.dongliu.dbutils.builder;

import javax.annotation.Nonnull;
import java.util.stream.Stream;

/**
 * The parent SQL node
 *
 * @author Liu Dong
 */
public abstract class SQLNode {

    /**
     * Get <sql string stream, param, param stream> this node should return
     */
    @Nonnull
    protected abstract SQLSegment segment();

    protected static final SQLNode empty = new SQLNode() {
        @Nonnull
        @Override
        public SQLSegment segment() {
            return new SQLSegment(Stream.empty(), Stream.empty());
        }
    };

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy