public class SQLQuery extends Object implements ASTNode
Modifier and Type | Class and Description |
---|---|
static class |
SQLQuery.IdentityTransformer |
static interface |
SQLQuery.Transformer
Interface for a class that can transform a
SQLQuery into another. |
Modifier and Type | Field and Description |
---|---|
FromClause |
from |
GroupByClause |
groupBy |
HavingClause |
having |
long |
limit |
long |
offset |
OrderByClause |
orderBy |
SelectClause |
select |
WhereClause |
where |
Constructor and Description |
---|
SQLQuery() |
SQLQuery(SelectClause select,
FromClause from) |
SQLQuery(SelectClause select,
FromClause from,
WhereClause where) |
SQLQuery(SelectClause select,
FromClause from,
WhereClause where,
GroupByClause groupBy,
HavingClause having,
OrderByClause orderBy) |
SQLQuery(SelectClause select,
FromClause from,
WhereClause where,
GroupByClause groupBy,
HavingClause having,
OrderByClause orderBy,
long limit,
long offset) |
SQLQuery(SelectClause select,
FromClause from,
WhereClause where,
OrderByClause orderBy) |
SQLQuery(SQLQuery other)
Copying constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(IVisitor visitor)
Accept the given visitor.
|
boolean |
equals(Object obj) |
FromClause |
getFromClause() |
long |
getLimit() |
long |
getOffset() |
OrderByClause |
getOrderByClause() |
String |
getQueryString() |
SelectClause |
getSelectClause() |
WhereClause |
getWhereClause() |
int |
hashCode() |
void |
setLimit(long limit) |
void |
setOffset(long offset) |
void |
setQueryString(String queryString) |
String |
toString() |
public SelectClause select
public final FromClause from
public final WhereClause where
public OrderByClause orderBy
public final GroupByClause groupBy
public final HavingClause having
public long limit
public long offset
public SQLQuery()
public SQLQuery(SelectClause select, FromClause from)
public SQLQuery(SelectClause select, FromClause from, WhereClause where)
public SQLQuery(SelectClause select, FromClause from, WhereClause where, OrderByClause orderBy)
public SQLQuery(SelectClause select, FromClause from, WhereClause where, GroupByClause groupBy, HavingClause having, OrderByClause orderBy)
public SQLQuery(SelectClause select, FromClause from, WhereClause where, GroupByClause groupBy, HavingClause having, OrderByClause orderBy, long limit, long offset)
public SelectClause getSelectClause()
public FromClause getFromClause()
public WhereClause getWhereClause()
public OrderByClause getOrderByClause()
public void accept(IVisitor visitor)
ASTNode
public void setLimit(long limit)
public void setOffset(long offset)
public long getLimit()
public long getOffset()
public String getQueryString()
public void setQueryString(String queryString)
Copyright © 2015 Nuxeo SA. All rights reserved.