T - the type of the expressionpublic class CoalesceExpression<T> extends AbstractExpression<T> implements CriteriaBuilder.Coalesce<T>
| Constructor and Description |
|---|
CoalesceExpression() |
CoalesceExpression(Expression<? extends T> x,
Expression<? extends T> y) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
T |
handle(QueryImpl<?> query,
SessionImpl session,
ResultSet row)
Handles the row.
|
CoalesceExpression<T> |
value(Expression<? extends T> value) |
CoalesceExpression<T> |
value(T value) |
as, getConverter, in, in, in, in, isNotNull, isNull, setConverteralias, getAlias, getCompoundSelectionItems, isCompoundSelection, isEntityListgetJavaTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitas, in, in, in, in, isNotNull, isNullalias, getCompoundSelectionItems, isCompoundSelectiongetAlias, getJavaTypepublic CoalesceExpression()
public CoalesceExpression(Expression<? extends T> x, Expression<? extends T> y)
x - the x expressiony - the y expressionpublic String generateJpqlRestriction(BaseQueryImpl<?> query)
generateJpqlRestriction in class AbstractExpression<T>query - the querypublic String generateJpqlSelect(AbstractCriteriaQueryImpl<?> query, boolean selected)
generateJpqlSelect in class AbstractSelection<T>query - the criteria queryselected - if the selection is selectedpublic String generateSqlSelect(AbstractCriteriaQueryImpl<?> query, boolean selected)
generateSqlSelect in class AbstractSelection<T>query - the queryselected - if the selection is selectedpublic String[] getSqlRestrictionFragments(BaseQueryImpl<?> query)
getSqlRestrictionFragments in class AbstractSelection<T>query - the querypublic T handle(QueryImpl<?> query, SessionImpl session, ResultSet row) throws SQLException
handle in class AbstractSelection<T>query - the querysession - the sessionrow - the rowSQLException - thrown in case of an underlying SQL Errorpublic CoalesceExpression<T> value(Expression<? extends T> value)
value in interface CriteriaBuilder.Coalesce<T>public CoalesceExpression<T> value(T value)
value in interface CriteriaBuilder.Coalesce<T>Copyright © 2012 Batoo Software & Consultancy. All Rights Reserved.