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 SubQuerystatic SubQuerycount(String path, Junction.Type junction) create(TypeManager typeManager, EntityModel entityModel) Creates a new node representing this condition.booleanstatic SubQuerystatic SubQueryexists(String path, Junction.Type junction) static SubQueryexistsNested(String path) static SubQueryexistsNested(String path, Junction.Type junction) If `path` involves multiple paths (like relFoo.relBar), create nested exists.get(int index) final booleanfinal StringgetPath()inthashCode()booleanisEmpty()isTrue()iterator()intsize()toString()Methods inherited from class Factor
between, between, fromLiteral, fromLiteralFunction, fromParameter, fromParameterFunction, fromPath, fromPathFunction, fuzzyIs, greaterEqual, greaterEqual, greaterThan, greaterThan, is, is, isNot, isNot, like, like, lowerEqual, lowerEqual, lowerThan, lowerThanMethods inherited from class 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 specialSubQueryclass 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:ConditionCreates 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
-
toString
-