![JAR search and dependency download from the Maven repository](/logo.png)
com.github.eikecochu.sqlbuilder.BeforeSelect Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sqlbuilder Show documentation
Show all versions of sqlbuilder Show documentation
Java builder to create SQL statements
The newest version!
package com.github.eikecochu.sqlbuilder;
/**
* Implemented by keywords that precede the SELECT statement.
*
* @param the generic type returned by some fluent methods of this interface
*/
public interface BeforeSelect> extends QueryPart, QueryPartSQL, QueryPartLinked {
/**
* Continue query with SELECT
*
* @return The new SELECT statement
*/
default Select select() {
return new Select(this);
}
/**
* Continue query with SELECT
*
* @param columns The column names to select
* @return The new SELECT statement
*/
default Select select(final String... columns) {
return select().columns(columns);
}
/**
* Accept an existing SELECT statement as predecessor
*
* @param select The existing SELECT statement
* @return Returns the passed SELECT statement
*/
default Select select(final Select select) {
return select.parent(this);
}
/**
* Use plain SQL to form this SELECT statement
*
* @param sql The sql string
* @return The new SELECT statement
*/
default Select selectSQL(final String sql) {
return select().sql(sql);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy