Class SQLSelectStatement
java.lang.Object
com.github.tadukoo.database.mysql.syntax.statement.SQLSelectStatement
SQL Select Statement is used to build a MySQL select statement
- Version:
- Alpha v.0.3
- Author:
- Logan Ferree (Tadukoo)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
The building part of building aSQLSelectStatement
static interface
static interface
static interface
TheTables
part of building aSQLSelectStatement
static class
A builder to build aSQLSelectStatement
.static interface
TheWhere Statement
and building part of building aSQLSelectStatement
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
Whether to select distinct columns or notThe tables to grab data fromThe columns to be selectedprivate final Conditional
The conditional where statement -
Constructor Summary
ModifierConstructorDescriptionprivate
SQLSelectStatement
(boolean distinct, List<ColumnRef> returnColumns, List<TableRef> fromTables, Conditional whereStatement) Constructs a newSQLSelectStatement
using the given parameters. -
Method Summary
-
Field Details
-
distinct
private final boolean distinctWhether to select distinct columns or not -
returnColumns
The columns to be selected -
fromTables
The tables to grab data from -
whereStatement
The conditional where statement
-
-
Constructor Details
-
SQLSelectStatement
private SQLSelectStatement(boolean distinct, List<ColumnRef> returnColumns, List<TableRef> fromTables, Conditional whereStatement) Constructs a newSQLSelectStatement
using the given parameters.- Parameters:
distinct
- Whether to select distinct columns or notreturnColumns
- The columns to be selectedfromTables
- The tables to grab data fromwhereStatement
- The conditional where statement
-
-
Method Details
-
builder
- Returns:
- A new
builder
to build aSQLSelectStatement
-
isDistinct
public boolean isDistinct()- Returns:
- Whether to select distinct columns or not
-
getReturnColumns
- Returns:
- The columns to be selected
-
getFromTables
- Returns:
- The tables to grab data from
-
getWhereStatement
- Returns:
- The conditional where statement
-
toString
-