Class SubQuery
java.lang.Object
ch.tocco.nice2.persist.core.api.qb2.Condition
ch.tocco.nice2.persist.core.api.qb2.Factor
ch.tocco.nice2.persist.core.api.qb2.SubQuery
-
Method Summary
Modifier and TypeMethodDescriptionstatic SubQuery
static SubQuery
count
(String path, Junction.Type junction) create
(TypeManager typeManager, EntityModel entityModel) Creates a new node representing this condition.boolean
static SubQuery
static SubQuery
exists
(String path, Junction.Type junction) static SubQuery
existsNested
(String path) static SubQuery
existsNested
(String path, Junction.Type junction) If `path` involves multiple paths (like relFoo.relBar), create nested exists.get
(int index) final boolean
final String
getPath()
int
hashCode()
boolean
isEmpty()
isTrue()
iterator()
int
size()
toString()
Methods inherited from class ch.tocco.nice2.persist.core.api.qb2.Factor
between, between, fromLiteral, fromLiteralFunction, fromParameter, fromParameterFunction, fromPath, fromPathFunction, fuzzyIs, greaterEqual, greaterEqual, greaterThan, greaterThan, is, is, isNot, isNot, like, like, lowerEqual, lowerEqual, lowerThan, lowerThan
Methods inherited from class ch.tocco.nice2.persist.core.api.qb2.Condition
createPathNode, createPathNode, getType
-
Method Details
-
exists
-
existsNested
If `path` involves multiple paths (like relFoo.relBar), create nested exists. Otherwise it is the same asexists(String)
. Example: instead of `exists(relFoo.relBar where …` do `exists(relFoo where exists(relBar where –))` A specialSubQuery
class is returned, where each condition that is added via `where` calls is appended to the innermost subquery. Calls to `isTrue` apply to all subqueries. All other (reading) operations are applied to the root subquery. -
existsNested
-
count
-
exists
-
count
-
create
Description copied from class:Condition
Creates a new node representing this condition. -
isTrue
-
getIsTrue
public final boolean getIsTrue() -
where
-
where
-
where
-
where
-
size
public int size() -
isEmpty
public boolean isEmpty() -
iterator
-
getPath
-
get
-
equals
-
hashCode
public int hashCode() -
toString
-