public final class InnerSelectInPredicate extends QueryParameterPredicate
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() |
public InnerSelectInPredicate(QueryParameter queryParameter, Predicate innerSelectPredicate)
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)
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()
getQueryParameter
in class QueryParameterPredicate
public QueryParameter getInnerSelectQueryParameter()
public Predicate getInnerSelectPredicate()
public InnerSelectInPredicate deriveWithQueryParameter(QueryParameter queryParameter)
deriveWithQueryParameter
in class QueryParameterPredicate
queryParameter
- the new query parameterCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.