com.mysema.query.support
Class QueryMixin<T>
java.lang.Object
com.mysema.query.support.QueryMixin<T>
- Type Parameters:
T
- type of wrapped query
- Direct Known Subclasses:
- ColQueryMixin, JDOQLQueryMixin, JPQLQueryMixin, SQLQueryMixin
public class QueryMixin<T>
- extends Object
Mixin style Query implementation
- Author:
- tiwe
Method Summary |
T |
addFlag(QueryFlag queryFlag)
|
T |
addToProjection(Expression<?>... o)
|
Expression<?>[] |
convert(Expression<?>[] exprs)
|
|
convert(Expression<RT> expr)
|
protected
|
createAlias(CollectionExpression<?,D> target,
Path<D> alias)
|
protected
|
createAlias(Expression<D> path,
Path<D> alias)
|
protected
|
createAlias(MapExpression<?,D> target,
Path<D> alias)
|
protected
|
createAlias(SubQueryExpression<D> path,
Path<D> alias)
|
T |
distinct()
|
boolean |
equals(Object o)
|
T |
from(EntityPath<?>... args)
|
T |
from(Expression<?>... args)
|
|
fullJoin(CollectionExpression<?,P> target)
|
|
fullJoin(CollectionExpression<?,P> target,
Path<P> alias)
|
|
fullJoin(EntityPath<P> target)
|
|
fullJoin(EntityPath<P> target,
EntityPath<P> alias)
|
|
fullJoin(MapExpression<?,P> target)
|
|
fullJoin(MapExpression<?,P> target,
Path<P> alias)
|
|
fullJoin(SubQueryExpression<P> target,
Path alias)
|
QueryMetadata |
getMetadata()
|
T |
getSelf()
|
T |
groupBy(Expression<?>... o)
|
int |
hashCode()
|
T |
having(Predicate... o)
|
|
innerJoin(CollectionExpression<?,P> target)
|
|
innerJoin(CollectionExpression<?,P> target,
Path<P> alias)
|
|
innerJoin(EntityPath<P> target)
|
|
innerJoin(EntityPath<P> target,
EntityPath<P> alias)
|
|
innerJoin(MapExpression<?,P> target)
|
|
innerJoin(MapExpression<?,P> target,
Path<P> alias)
|
|
innerJoin(SubQueryExpression<P> target,
Path alias)
|
boolean |
isDistinct()
|
boolean |
isUnique()
|
|
join(CollectionExpression<?,P> target)
|
|
join(CollectionExpression<?,P> target,
Path<P> alias)
|
|
join(EntityPath<P> target)
|
|
join(EntityPath<P> target,
EntityPath<P> alias)
|
|
join(MapExpression<?,P> target)
|
|
join(MapExpression<?,P> target,
Path<P> alias)
|
|
join(SubQueryExpression<P> target,
Path alias)
|
|
leftJoin(CollectionExpression<?,P> target)
|
|
leftJoin(CollectionExpression<?,P> target,
Path<P> alias)
|
|
leftJoin(EntityPath<P> target)
|
|
leftJoin(EntityPath<P> target,
EntityPath<P> alias)
|
|
leftJoin(MapExpression<?,P> target)
|
|
leftJoin(MapExpression<?,P> target,
Path<P> alias)
|
|
leftJoin(SubQueryExpression<P> target,
Path alias)
|
T |
limit(long limit)
|
protected Predicate[] |
normalize(Predicate[] conditions,
boolean where)
|
T |
offset(long offset)
|
T |
on(Predicate... conditions)
|
T |
orderBy(OrderSpecifier<?>... o)
|
T |
restrict(QueryModifiers modifiers)
|
|
rightJoin(CollectionExpression<?,P> target)
|
|
rightJoin(CollectionExpression<?,P> target,
Path<P> alias)
|
|
rightJoin(EntityPath<P> target)
|
|
rightJoin(EntityPath<P> target,
EntityPath<P> alias)
|
|
rightJoin(MapExpression<?,P> target)
|
|
rightJoin(MapExpression<?,P> target,
Path<P> alias)
|
|
rightJoin(SubQueryExpression<P> target,
Path alias)
|
|
set(ParamExpression<P> param,
P value)
|
void |
setDistinct(boolean distinct)
|
void |
setSelf(T self)
|
void |
setUnique(boolean unique)
|
String |
toString()
|
T |
where(Predicate... o)
|
QueryMixin
public QueryMixin()
QueryMixin
public QueryMixin(QueryMetadata metadata)
QueryMixin
public QueryMixin(T self)
QueryMixin
public QueryMixin(T self,
QueryMetadata metadata)
addFlag
public T addFlag(QueryFlag queryFlag)
addToProjection
public T addToProjection(Expression<?>... o)
convert
public <RT> Expression<RT> convert(Expression<RT> expr)
convert
public Expression<?>[] convert(Expression<?>[] exprs)
createAlias
protected <D> Expression<D> createAlias(Expression<D> path,
Path<D> alias)
createAlias
protected <D> Expression<D> createAlias(CollectionExpression<?,D> target,
Path<D> alias)
createAlias
protected <D> Expression<D> createAlias(MapExpression<?,D> target,
Path<D> alias)
createAlias
protected <D> Expression<D> createAlias(SubQueryExpression<D> path,
Path<D> alias)
distinct
public T distinct()
from
public T from(Expression<?>... args)
from
public T from(EntityPath<?>... args)
fullJoin
public <P> T fullJoin(EntityPath<P> target)
fullJoin
public <P> T fullJoin(EntityPath<P> target,
EntityPath<P> alias)
fullJoin
public <P> T fullJoin(CollectionExpression<?,P> target)
fullJoin
public <P> T fullJoin(CollectionExpression<?,P> target,
Path<P> alias)
fullJoin
public <P> T fullJoin(MapExpression<?,P> target)
fullJoin
public <P> T fullJoin(MapExpression<?,P> target,
Path<P> alias)
fullJoin
public <P> T fullJoin(SubQueryExpression<P> target,
Path alias)
getMetadata
public QueryMetadata getMetadata()
getSelf
public T getSelf()
groupBy
public T groupBy(Expression<?>... o)
having
public T having(Predicate... o)
innerJoin
public <P> T innerJoin(EntityPath<P> target)
innerJoin
public <P> T innerJoin(EntityPath<P> target,
EntityPath<P> alias)
innerJoin
public <P> T innerJoin(CollectionExpression<?,P> target)
innerJoin
public <P> T innerJoin(CollectionExpression<?,P> target,
Path<P> alias)
innerJoin
public <P> T innerJoin(MapExpression<?,P> target)
innerJoin
public <P> T innerJoin(MapExpression<?,P> target,
Path<P> alias)
innerJoin
public <P> T innerJoin(SubQueryExpression<P> target,
Path alias)
isDistinct
public boolean isDistinct()
isUnique
public boolean isUnique()
join
public <P> T join(EntityPath<P> target)
join
public <P> T join(EntityPath<P> target,
EntityPath<P> alias)
join
public <P> T join(CollectionExpression<?,P> target)
join
public <P> T join(CollectionExpression<?,P> target,
Path<P> alias)
join
public <P> T join(MapExpression<?,P> target)
join
public <P> T join(MapExpression<?,P> target,
Path<P> alias)
join
public <P> T join(SubQueryExpression<P> target,
Path alias)
leftJoin
public <P> T leftJoin(EntityPath<P> target)
leftJoin
public <P> T leftJoin(EntityPath<P> target,
EntityPath<P> alias)
leftJoin
public <P> T leftJoin(CollectionExpression<?,P> target)
leftJoin
public <P> T leftJoin(CollectionExpression<?,P> target,
Path<P> alias)
leftJoin
public <P> T leftJoin(MapExpression<?,P> target)
leftJoin
public <P> T leftJoin(MapExpression<?,P> target,
Path<P> alias)
leftJoin
public <P> T leftJoin(SubQueryExpression<P> target,
Path alias)
limit
public T limit(long limit)
offset
public T offset(long offset)
on
public T on(Predicate... conditions)
orderBy
public T orderBy(OrderSpecifier<?>... o)
restrict
public T restrict(QueryModifiers modifiers)
rightJoin
public <P> T rightJoin(EntityPath<P> target)
rightJoin
public <P> T rightJoin(EntityPath<P> target,
EntityPath<P> alias)
rightJoin
public <P> T rightJoin(CollectionExpression<?,P> target)
rightJoin
public <P> T rightJoin(CollectionExpression<?,P> target,
Path<P> alias)
rightJoin
public <P> T rightJoin(MapExpression<?,P> target)
rightJoin
public <P> T rightJoin(MapExpression<?,P> target,
Path<P> alias)
rightJoin
public <P> T rightJoin(SubQueryExpression<P> target,
Path alias)
set
public <P> T set(ParamExpression<P> param,
P value)
setDistinct
public void setDistinct(boolean distinct)
setSelf
public void setSelf(T self)
setUnique
public void setUnique(boolean unique)
where
public T where(Predicate... o)
normalize
protected Predicate[] normalize(Predicate[] conditions,
boolean where)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.