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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe building part of building aSQLSelectStatementstatic interfacestatic interfacestatic interfaceTheTablespart of building aSQLSelectStatementstatic classA builder to build aSQLSelectStatement.static interfaceTheWhere Statementand building part of building aSQLSelectStatement - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanWhether to select distinct columns or notThe tables to grab data fromThe columns to be selectedprivate final ConditionalThe conditional where statement - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSQLSelectStatement(boolean distinct, List<ColumnRef> returnColumns, List<TableRef> fromTables, Conditional whereStatement) Constructs a newSQLSelectStatementusing 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 newSQLSelectStatementusing 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 
builderto 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
 
 -