public class SQLBuilderBase.SelectBuilderBase extends SQLBuilderBase.AbstractStatement implements SQLBuilder.SelectBuilder
Modifier and Type | Field and Description |
---|---|
protected boolean |
check_order_and_offset |
protected java.util.List<SQLBuilder.SelectColumnBuilder> |
columns |
protected boolean |
distinct |
protected SQLBuilder.FromBuilder |
from |
protected java.util.List<ExpressionBuilder.Value> |
groupColumn |
protected long |
limit |
protected long |
offset |
protected java.util.List<SQLBuilder.OrderByBuilder> |
order_by |
protected GeometryExpressionBuilder |
where |
properties
Constructor and Description |
---|
SelectBuilderBase() |
clone
copyPropertiesFrom, getProperties, getProperty, setProperty
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, copyPropertiesFrom
getProperties, getProperty, setProperty
cloneQuietly, cloneQuietly
protected SQLBuilder.FromBuilder from
protected GeometryExpressionBuilder where
protected long limit
protected long offset
protected java.util.List<SQLBuilder.SelectColumnBuilder> columns
protected java.util.List<SQLBuilder.OrderByBuilder> order_by
protected boolean distinct
protected java.util.List<ExpressionBuilder.Value> groupColumn
protected boolean check_order_and_offset
public java.util.List<ExpressionBuilder.Value> getGroups()
getGroups
in interface SQLBuilder.SelectBuilder
public java.util.List<SQLBuilder.SelectColumnBuilder> getColumns()
getColumns
in interface SQLBuilder.SelectBuilder
public void remove_column(java.lang.String columnName)
remove_column
in interface SQLBuilder.SelectBuilder
public SQLBuilder.SelectBuilder group_by(ExpressionBuilder.Value... columns)
group_by
in interface SQLBuilder.SelectBuilder
public void accept(ExpressionBuilder.Visitor visitor, ExpressionBuilder.VisitorFilter filter)
accept
in interface ExpressionBuilder.Visitable
accept
in class ExpressionBuilder.AbstractValue
public void replace(ExpressionBuilder.Value target, ExpressionBuilder.Value replacement)
replace
in interface ExpressionBuilder.Value
replace
in class ExpressionBuilder.AbstractValue
public SQLBuilder.SelectBuilder distinct()
distinct
in interface SQLBuilder.SelectBuilder
public SQLBuilder.SelectColumnBuilder column()
column
in interface SQLBuilder.SelectBuilder
public SQLBuilder.SelectColumnBuilder column(SQLBuilder.SelectColumnBuilder columnBuilder)
column
in interface SQLBuilder.SelectBuilder
public SQLBuilder.SelectColumnBuilder column(java.lang.String name)
column
in interface SQLBuilder.SelectBuilder
public SQLBuilder.SelectColumnBuilder getColumn(java.lang.String name)
getColumn
in interface SQLBuilder.SelectBuilder
public SQLBuilder.SelectBuilder remove_all_columns()
remove_all_columns
in interface SQLBuilder.SelectBuilder
public boolean has_column(java.lang.String name)
has_column
in interface SQLBuilder.SelectBuilder
public SQLBuilder.FromBuilder from()
from
in interface SQLBuilder.SelectBuilder
public boolean has_from()
has_from
in interface SQLBuilder.SelectBuilder
public GeometryExpressionBuilder where()
where
in interface SQLBuilder.SelectBuilder
public boolean has_where()
has_where
in interface SQLBuilder.SelectBuilder
public SQLBuilder.SelectBuilder limit(long limit)
limit
in interface SQLBuilder.SelectBuilder
public SQLBuilder.SelectBuilder limit(java.lang.Long limit)
limit
in interface SQLBuilder.SelectBuilder
public boolean has_limit()
has_limit
in interface SQLBuilder.SelectBuilder
public SQLBuilder.SelectBuilder offset(long offset)
SQLBuilder.SelectBuilder
offset
in interface SQLBuilder.SelectBuilder
public boolean has_offset()
has_offset
in interface SQLBuilder.SelectBuilder
public SQLBuilder.OrderByBuilder order_by()
order_by
in interface SQLBuilder.SelectBuilder
public SQLBuilder.OrderByBuilder getOrderBy(ExpressionBuilder.Value column)
getOrderBy
in interface SQLBuilder.SelectBuilder
public SQLBuilder.OrderByBuilder getOrderBy(java.lang.String column)
getOrderBy
in interface SQLBuilder.SelectBuilder
public boolean isGroupBy(java.lang.String column)
isGroupBy
in interface SQLBuilder.SelectBuilder
public boolean has_order_by()
has_order_by
in interface SQLBuilder.SelectBuilder
public boolean has_group_by()
has_group_by
in interface SQLBuilder.SelectBuilder
public boolean has_aggregate_functions()
has_aggregate_functions
in interface SQLBuilder.SelectBuilder
public void disable_check_order_and_offset()
disable_check_order_and_offset
in interface SQLBuilder.SelectBuilder
protected boolean isValid(java.lang.StringBuilder message)
public java.lang.String toString()
SQLBuilder.SelectBuilder
toString
in interface SQLBuilder.SelectBuilder
toString
in class java.lang.Object
public java.lang.String toString(Formatter<ExpressionBuilder.Value> formatter)
toString
in interface ExpressionBuilder.Value