
net.dongliu.dbutils.sqlbuilder.SQLNode Maven / Gradle / Ivy
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