public class SqlPredicates extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_SQL_SERVER_PARAMETER_LIMIT
The maximum number of parameters SQL Server allows in a single query
|
Constructor and Description |
---|
SqlPredicates(DatabaseConfig dbConfig) |
Modifier and Type | Method and Description |
---|---|
<D> com.querydsl.core.types.Predicate |
inAny(com.querydsl.core.types.dsl.SimpleExpression<D> left,
Iterable<? extends List<? extends D>> lists)
Create a
left in right or... expression for each list
This method can be removed once we upgrade to QueryDSL 3.6.0 or above, when QueryDSL introduces ExpressionUtils.inAny() |
<D> com.querydsl.core.types.Predicate |
partitionedIn(com.querydsl.core.types.dsl.SimpleExpression<D> left,
Collection<? extends D> right)
Create a SQL IN clause, if necessary partitioning to account for Oracle's maximum of 1000 parameters for each IN clause.
|
public static final int MAX_SQL_SERVER_PARAMETER_LIMIT
public SqlPredicates(DatabaseConfig dbConfig)
public <D> com.querydsl.core.types.Predicate partitionedIn(com.querydsl.core.types.dsl.SimpleExpression<D> left, Collection<? extends D> right)
For Oracle, where the collection has greater than 1000 parameters, the clause will be partitioned into multiple IN...OR...IN clauses.
For other databases, a standard IN clause will be created.
This method can be removed once we upgrade to QueryDSL 3.6.0 or above, when QueryDSL will split large IN clauses for us. See https://github.com/querydsl/querydsl/issues/1022left
- left valueright
- right collectionpublic <D> com.querydsl.core.types.Predicate inAny(com.querydsl.core.types.dsl.SimpleExpression<D> left, Iterable<? extends List<? extends D>> lists)
left in right or...
expression for each list
This method can be removed once we upgrade to QueryDSL 3.6.0 or above, when QueryDSL introduces ExpressionUtils.inAny()D
- expression typeD
- left
- expressionlists
- left in right or...
expressionCopyright © 2002-2021 Atlassian. All Rights Reserved.