public class InExpression extends AbstractExpression<Boolean>
| Constructor and Description |
|---|
InExpression(AbstractExpression<?> inner,
javax.persistence.criteria.Expression<?>[] values,
boolean not) |
InExpression(javax.persistence.criteria.Expression<?> inner,
Collection<?> values,
boolean not) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(AbstractExpression<?> expression)
Adds the expression to the list of values.
|
String |
generateJpqlRestriction(BaseQueryImpl<?> query)
Returns the JPQL where fragment.
|
String |
generateJpqlSelect(AbstractCriteriaQueryImpl<?> query,
boolean selected)
Returns the JPQL select fragment.
|
String |
generateSqlSelect(AbstractCriteriaQueryImpl<?> query,
boolean selected)
Returns the SQL select fragment.
|
String[] |
getSqlRestrictionFragments(BaseQueryImpl<?> query)
Returns the SQL restriction fragments.
|
Boolean |
handle(QueryImpl<?> query,
SessionImpl session,
ResultSet row)
Handles the row.
|
as, getConverter, in, in, in, in, isNotNull, isNull, notIn, notIn, notIn, notIn, setConverteralias, getAlias, getCompoundSelectionItems, isCompoundSelection, isEntityListgetJavaTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic InExpression(AbstractExpression<?> inner, javax.persistence.criteria.Expression<?>[] values, boolean not)
inner - the inner expressionvalues - the valuesnot - true if notpublic InExpression(javax.persistence.criteria.Expression<?> inner,
Collection<?> values,
boolean not)
inner - the inner expressionvalues - the valuesnot - true if notpublic void add(AbstractExpression<?> expression)
expression - the expression to addpublic String generateJpqlRestriction(BaseQueryImpl<?> query)
generateJpqlRestriction in class AbstractExpression<Boolean>query - the querypublic String generateJpqlSelect(AbstractCriteriaQueryImpl<?> query, boolean selected)
generateJpqlSelect in class AbstractSelection<Boolean>query - the criteria queryselected - if the selection is selectedpublic String generateSqlSelect(AbstractCriteriaQueryImpl<?> query, boolean selected)
generateSqlSelect in class AbstractSelection<Boolean>query - the queryselected - if the selection is selectedpublic String[] getSqlRestrictionFragments(BaseQueryImpl<?> query)
getSqlRestrictionFragments in class AbstractSelection<Boolean>query - the querypublic Boolean handle(QueryImpl<?> query, SessionImpl session, ResultSet row) throws SQLException
handle in class AbstractSelection<Boolean>query - the querysession - the sessionrow - the rowSQLException - thrown in case of an underlying SQL ErrorCopyright © 2012-2013 Batoo. All Rights Reserved.