Class SQLQuery
java.lang.Object
org.nuxeo.ecm.core.query.sql.model.SQLQuery
- All Implemented Interfaces:
Serializable
,ASTNode
- Author:
- Bogdan Stefanescu, Florent Guillaume
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
Interface for a class that can transform aSQLQuery
into another. -
Field Summary
Modifier and TypeFieldDescriptionfinal FromClause
final GroupByClause
final HavingClause
long
long
final WhereClause
-
Constructor Summary
ConstructorDescriptionSQLQuery()
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) Copying constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Accept the given visitor.boolean
long
getLimit()
long
int
hashCode()
void
setLimit
(long limit) void
setOffset
(long offset) void
setQueryString
(String queryString) toString()
withPredicate
(Predicate predicate)
-
Field Details
-
select
-
from
-
where
-
orderBy
-
groupBy
-
having
-
limit
public long limit -
offset
public long offset
-
-
Constructor Details
-
SQLQuery
public SQLQuery() -
SQLQuery
-
SQLQuery
-
SQLQuery
-
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
Copying constructor. Does not deep-copy the clauses though.
-
-
Method Details
-
withPredicate
-
getSelectClause
-
getFromClause
-
getWhereClause
-
getOrderByClause
-
accept
Description copied from interface:ASTNode
Accept the given visitor. -
toString
-
setLimit
public void setLimit(long limit) -
setOffset
public void setOffset(long offset) -
getLimit
public long getLimit() -
getOffset
public long getOffset() -
getQueryString
-
setQueryString
-
equals
-
hashCode
public int hashCode()
-