Class SQLQuery
- java.lang.Object
-
- org.nuxeo.ecm.core.query.sql.model.SQLQuery
-
- All Implemented Interfaces:
Serializable
,ASTNode
public class SQLQuery extends Object implements ASTNode
- Author:
- Bogdan Stefanescu, Florent Guillaume
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SQLQuery.IdentityTransformer
static interface
SQLQuery.Transformer
Interface for a class that can transform aSQLQuery
into another.
-
Field Summary
Fields Modifier and Type Field Description FromClause
from
GroupByClause
groupBy
HavingClause
having
long
limit
long
offset
OrderByClause
orderBy
SelectClause
select
WhereClause
where
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
SQLQuery
withPredicate(Predicate predicate)
-
-
-
Field Detail
-
select
public SelectClause select
-
from
public final FromClause from
-
where
public final WhereClause where
-
orderBy
public OrderByClause orderBy
-
groupBy
public final GroupByClause groupBy
-
having
public final HavingClause having
-
limit
public long limit
-
offset
public long offset
-
-
Constructor Detail
-
SQLQuery
public SQLQuery()
-
SQLQuery
public SQLQuery(SelectClause select, FromClause from)
-
SQLQuery
public SQLQuery(SelectClause select, FromClause from, WhereClause where)
-
SQLQuery
public SQLQuery(SelectClause select, FromClause from, WhereClause where, OrderByClause orderBy)
-
SQLQuery
public SQLQuery(SelectClause select, FromClause from, WhereClause where, GroupByClause groupBy, HavingClause having, OrderByClause orderBy)
-
SQLQuery
public SQLQuery(SelectClause select, FromClause from, WhereClause where, GroupByClause groupBy, HavingClause having, OrderByClause orderBy, long limit, long offset)
-
SQLQuery
public SQLQuery(SQLQuery other)
Copying constructor. Does not deep-copy the clauses though.
-
-
Method Detail
-
getSelectClause
public SelectClause getSelectClause()
-
getFromClause
public FromClause getFromClause()
-
getWhereClause
public WhereClause getWhereClause()
-
getOrderByClause
public OrderByClause getOrderByClause()
-
accept
public void accept(IVisitor visitor)
Description copied from interface:ASTNode
Accept the given visitor.
-
setLimit
public void setLimit(long limit)
-
setOffset
public void setOffset(long offset)
-
getLimit
public long getLimit()
-
getOffset
public long getOffset()
-
getQueryString
public String getQueryString()
-
setQueryString
public void setQueryString(String queryString)
-
-