public class DetachableMixin extends Object implements Detachable
| Constructor and Description |
|---|
DetachableMixin(QueryMixin<?> queryMixin) |
| Modifier and Type | Method and Description |
|---|---|
NumberSubQuery<Long> |
count()
Return the count of matched rows as a sub query
|
BooleanExpression |
exists()
Create an exists(this) expression
|
ListSubQuery<Tuple> |
list(Expression<?>... args)
Create a multi row subquery expression for the given projection
|
<RT> ListSubQuery<RT> |
list(Expression<RT> projection)
Create a multi row subquery expression for the given projection
|
ListSubQuery<Tuple> |
list(Object... args)
Create a multi row subquery expression for the given projection
|
ListSubQuery<Tuple> |
list(Object arg) |
BooleanExpression |
notExists()
Create an not exists(this) expression
|
<RT extends Comparable<?>> |
unique(ComparableExpression<RT> projection)
Create a single row subquery expression for the given projection
|
<RT extends Comparable<?>> |
unique(DateExpression<RT> projection)
Create a single row subquery expression for the given projection
|
<RT extends Comparable<?>> |
unique(DateTimeExpression<RT> projection)
Create a single row subquery expression for the given projection
|
SimpleSubQuery<Tuple> |
unique(Expression<?>... args)
Create a single row subquery expression for the given projection
|
<RT> SimpleSubQuery<RT> |
unique(Expression<RT> projection)
Create a single row subquery expression for the given projection
|
<RT extends Number & Comparable<?>> |
unique(NumberExpression<RT> projection)
Create a single row subquery expression for the given projection
|
SimpleSubQuery<Tuple> |
unique(Object... args)
Create a single row subquery expression for the given projection
|
BooleanSubQuery |
unique(Predicate projection)
Create a single row subquery expression for the given projection
|
StringSubQuery |
unique(StringExpression projection)
Create a single row subquery expression for the given projection
|
<RT extends Comparable<?>> |
unique(TimeExpression<RT> projection)
Create a single row subquery expression for the given projection
|
public DetachableMixin(QueryMixin<?> queryMixin)
public NumberSubQuery<Long> count()
DetachableUsage
query.where(subQuery.from(customer).where(...).count().gt(1)) count in interface Detachablepublic BooleanExpression exists()
DetachableUsage
query.where(subQuery.from(customer).where(...).exists()) exists in interface Detachablepublic ListSubQuery<Tuple> list(Expression<?>... args)
DetachableUsage
subQuery.from(person).list(person.firstName, person.lastName).countDistinct() list in interface Detachablepublic <RT> ListSubQuery<RT> list(Expression<RT> projection)
DetachableUsage
customer.name.in(subQuery.from(customer).where(...).list(customer.name))list in interface DetachableRT - generic type of the Listpublic ListSubQuery<Tuple> list(Object arg)
public ListSubQuery<Tuple> list(Object... args)
DetachableNon expression arguments are converted into constant expressions
Usage
subQuery.from(person).list(person.firstName, "M")list in interface Detachablepublic SimpleSubQuery<Tuple> unique(Object... args)
DetachableNon expression arguments are converted into constant expressions
Usage
subQuery.from(person).unique(person.firstName, "M")unique in interface Detachablepublic BooleanExpression notExists()
DetachableUsage
query.where(subQuery.from(customer).where(...).notExists()) notExists in interface Detachablepublic <RT extends Comparable<?>> ComparableSubQuery<RT> unique(ComparableExpression<RT> projection)
Detachableunique in interface DetachableDetachable.unique(com.mysema.query.types.Expression)public <RT extends Comparable<?>> DateSubQuery<RT> unique(DateExpression<RT> projection)
Detachableunique in interface DetachableDetachable.unique(com.mysema.query.types.Expression)public <RT extends Comparable<?>> DateTimeSubQuery<RT> unique(DateTimeExpression<RT> projection)
Detachableunique in interface DetachableDetachable.unique(com.mysema.query.types.Expression)public SimpleSubQuery<Tuple> unique(Expression<?>... args)
DetachableUsage
subQuery.from(person).unique(person.firstName, person.lastName)unique in interface Detachablepublic <RT> SimpleSubQuery<RT> unique(Expression<RT> projection)
DetachableUsage
person.age.eq(subQuery.from(person).unique(person.age.max())) unique in interface DetachableRT - return typepublic <RT extends Number & Comparable<?>> NumberSubQuery<RT> unique(NumberExpression<RT> projection)
Detachableunique in interface DetachableDetachable.unique(com.mysema.query.types.Expression)public BooleanSubQuery unique(Predicate projection)
Detachableunique in interface DetachableDetachable.unique(com.mysema.query.types.Expression)public StringSubQuery unique(StringExpression projection)
Detachableunique in interface DetachableDetachable.unique(com.mysema.query.types.Expression)public <RT extends Comparable<?>> TimeSubQuery<RT> unique(TimeExpression<RT> projection)
Detachableunique in interface DetachableDetachable.unique(com.mysema.query.types.Expression)Copyright © 2007–2015 Querydsl. All rights reserved.