de.jaggl.sqlbuilder.queries.QueryableQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sqlbuilder-core Show documentation
Show all versions of sqlbuilder-core Show documentation
A Java-Library to build SQL-Statements
package de.jaggl.sqlbuilder.queries;
import java.util.List;
import java.util.Optional;
import de.jaggl.sqlbuilder.queryexecutor.SelectQueryExecutor;
/**
* @author Martin Schumacher
*
* @since 2.5.0
*/
public interface QueryableQuery extends Query
{
default List query(SelectQueryExecutor selectQueryExecutor)
{
return selectQueryExecutor.query(this);
}
default Optional queryOne(SelectQueryExecutor selectQueryExecutor)
{
return selectQueryExecutor.queryOne(this);
}
default T queryExactOne(SelectQueryExecutor selectQueryExecutor)
{
return selectQueryExecutor.queryExactOne(this);
}
}