public class SQLBuilderBase.SelectBuilderBase extends Object implements SQLBuilder.SelectBuilder
Modifier and Type | Field and Description |
---|---|
protected List<SQLBuilder.SelectColumnBuilder> |
columns |
protected boolean |
distinct |
protected SQLBuilder.FromBuilder |
from |
protected long |
limit |
protected long |
offset |
protected List<SQLBuilder.OrderByBuilder> |
order_by |
protected ExpressionBuilder |
where |
Constructor and Description |
---|
SelectBuilderBase() |
Modifier and Type | Method and Description |
---|---|
void |
accept(ExpressionBuilder.Visitor visitor,
ExpressionBuilder.VisitorFilter filter) |
SQLBuilder.SelectColumnBuilder |
column() |
SQLBuilder.SelectBuilder |
distinct() |
SQLBuilder.FromBuilder |
from() |
boolean |
has_column(String name) |
boolean |
has_from() |
boolean |
has_limit() |
boolean |
has_offset() |
boolean |
has_order_by() |
boolean |
has_where() |
protected boolean |
isValid(StringBuilder message) |
SQLBuilder.SelectBuilder |
limit(long limit) |
SQLBuilder.SelectBuilder |
offset(long offset)
Specifies an offset to be applied to the SQL statement.
|
SQLBuilder.OrderByBuilder |
order_by() |
String |
toString()
Constructs the SQL statement.
|
ExpressionBuilder |
where() |
protected SQLBuilder.FromBuilder from
protected ExpressionBuilder where
protected long limit
protected long offset
protected List<SQLBuilder.SelectColumnBuilder> columns
protected List<SQLBuilder.OrderByBuilder> order_by
protected boolean distinct
public void accept(ExpressionBuilder.Visitor visitor, ExpressionBuilder.VisitorFilter filter)
accept
in interface ExpressionBuilder.Visitable
public SQLBuilder.SelectBuilder distinct()
distinct
in interface SQLBuilder.SelectBuilder
public SQLBuilder.SelectColumnBuilder column()
column
in interface SQLBuilder.SelectBuilder
public boolean has_column(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 ExpressionBuilder 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 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 boolean has_order_by()
has_order_by
in interface SQLBuilder.SelectBuilder
protected boolean isValid(StringBuilder message)
public String toString()
SQLBuilder.SelectBuilder
toString
in interface SQLBuilder.SelectBuilder
toString
in class Object