Package com.atlassian.jira.entity
Class Select.WhereContext<E>
java.lang.Object
com.atlassian.jira.entity.Select.ExecutableContext<E>
com.atlassian.jira.entity.Select.WhereClauseAwareContext<E>
com.atlassian.jira.entity.Select.WhereContext<E>
- Type Parameters:
E- the type of value that the query yields, which is either implied by the factory method used or inferred from theNamedEntityBuilderthat was supplied to it
- All Implemented Interfaces:
SelectQuery<E>
- Enclosing class:
Select
A partially constructed query that may accept
.where and .orderBy clauses.
As a readability aid, most .whereX clauses my also be specified with a {.andX} clause after the
first one has been specified.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.entity.SelectQuery
SelectQuery.ExecutionContext<E> -
Field Summary
Fields inherited from class com.atlassian.jira.entity.Select.ExecutableContext
queryBuilder -
Method Summary
Modifier and TypeMethodDescriptionandCondition(org.ofbiz.core.entity.EntityCondition condition) Specifies the ordering for the return values.whereCondition(org.ofbiz.core.entity.EntityCondition condition) whereEqual(String fieldName, Long value) whereEqual(String fieldName, String value) Methods inherited from class com.atlassian.jira.entity.Select.WhereClauseAwareContext
byId, whereLike, whereNullMethods inherited from class com.atlassian.jira.entity.Select.ExecutableContext
runWith, runWith
-
Method Details
-
whereEqual
- Specified by:
whereEqualin classSelect.WhereClauseAwareContext<E>
-
whereEqual
- Specified by:
whereEqualin classSelect.WhereClauseAwareContext<E>
-
where
public Select.WhereContext<E> where(String fieldName, org.ofbiz.core.entity.EntityOperator operator, Long value) - Specified by:
wherein classSelect.WhereClauseAwareContext<E>
-
whereCondition
- Specified by:
whereConditionin classSelect.WhereClauseAwareContext<E>
-
andEqual
-
andEqual
-
andLike
-
andCondition
-
orderBy
Specifies the ordering for the return values. This is required if you wish to specify aLIMITfor the query, as some databases cannot enumerate the returned rows except in the context of a well defined ordering (and which rows get returned would not be reliable without it, anyway).- Specified by:
orderByin classSelect.WhereClauseAwareContext<E>- Parameters:
orderByColumns- one or more columns by which to order the results- Returns:
- a partially constructed query. Use
.limitto continue building the query or.runWithto complete it by specifying an execution method.
-