public class InnerSelectInPredicate extends QueryParameterPredicate
A predicate which compares a query parameter (i.e. left operand) with an inner select predicate (i.e. right operand) based on a IN operator.
Constructor and Description |
---|
InnerSelectInPredicate(QueryParameter queryParameter,
Predicate innerSelectPredicate)
Creates a predicate instance representing a
queryParameter IN (select queryParameter from table where innerSelectPredicate) criterion. |
InnerSelectInPredicate(QueryParameter queryParameter,
QueryParameter innerSelectQueryParameter,
Predicate innerSelectPredicate)
Creates a predicate instance representing a
queryParameter IN (select innerSelectQueryParameter from table where innerSelectPredicate) criterion. |
Modifier and Type | Method and Description |
---|---|
InnerSelectInPredicate |
deriveWithQueryParameter(QueryParameter queryParameter)
Derives a new predicate with the given query parameter from this predicate.
|
Predicate |
getInnerSelectPredicate()
Returns the inner select predicate (i.e. right operand) of this predicate.
|
QueryParameter |
getInnerSelectQueryParameter()
Returns the query parameter representing the column to include from the entries of the inner select statement that match the predicate.
|
QueryParameter |
getQueryParameter()
Returns the query parameter (i.e. left operand) of this predicate.
|
String |
toString() |
and, apply, not, or
public InnerSelectInPredicate(QueryParameter queryParameter, Predicate innerSelectPredicate)
Creates a predicate instance representing a queryParameter IN (select queryParameter from table where innerSelectPredicate)
criterion.
queryParameter
- the left operand of the created predicateinnerSelectPredicate
- the right operands of the createdpublic InnerSelectInPredicate(QueryParameter queryParameter, QueryParameter innerSelectQueryParameter, Predicate innerSelectPredicate)
Creates a predicate instance representing a queryParameter IN (select innerSelectQueryParameter from table where innerSelectPredicate)
criterion.
queryParameter
- the left operand of the created predicateinnerSelectQueryParameter
- the column to include from the entries of the inner select statement that match the predicateinnerSelectPredicate
- the right operands of the createdpublic QueryParameter getQueryParameter()
Returns the query parameter (i.e. left operand) of this predicate.
getQueryParameter
in class QueryParameterPredicate
public QueryParameter getInnerSelectQueryParameter()
Returns the query parameter representing the column to include from the entries of the inner select statement that match the predicate.
public Predicate getInnerSelectPredicate()
Returns the inner select predicate (i.e. right operand) of this predicate.
public InnerSelectInPredicate deriveWithQueryParameter(QueryParameter queryParameter)
Derives a new predicate with the given query parameter from this predicate.
deriveWithQueryParameter
in class QueryParameterPredicate
queryParameter
- the new query parameterCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.