public class JDOSubQuery extends AbstractJDOSubQuery<JDOSubQuery>
MDC_PARAMETERS, MDC_QUERY, queryMixin
Constructor and Description |
---|
JDOSubQuery() |
JDOSubQuery(QueryMetadata metadata) |
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
|
BooleanExpression |
notExists()
Create an not exists(this) expression
|
from, from, from, toString
list, list, list, list, unique, unique, unique, unique, unique, unique, unique, unique, unique, unique
distinct, equals, groupBy, groupBy, hashCode, having, having, limit, offset, orderBy, orderBy, restrict, set, where, where
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
distinct, limit, offset, orderBy, restrict, set
where
public JDOSubQuery()
public JDOSubQuery(QueryMetadata metadata)
public BooleanExpression exists()
Detachable
Usage
query.where(subQuery.from(customer).where(...).exists())
exists
in interface Detachable
exists
in class DetachableQuery<JDOSubQuery>
public BooleanExpression notExists()
Detachable
Usage
query.where(subQuery.from(customer).where(...).notExists())
notExists
in interface Detachable
notExists
in class DetachableQuery<JDOSubQuery>
public NumberSubQuery<Long> count()
Detachable
Usage
query.where(subQuery.from(customer).where(...).count().gt(1))
count
in interface Detachable
count
in class DetachableQuery<JDOSubQuery>
Copyright © 2007–2015 Mysema Ltd. All rights reserved.