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

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

There is a newer version: 6.0.2
Show newest version
package net.dongliu.dbutils.sqlbuilder;

import javax.annotation.Nonnull;
import java.util.Collections;

/**
 * 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(Collections.emptyList(), Collections.emptyList());
        }
    };

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy