T - the type of the constant expressionpublic class EntityConstantExpression<T> extends AbstractParameterExpressionImpl<T>
| Constructor and Description |
|---|
EntityConstantExpression(TypeImpl<T> type,
T value) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensureAlias(BaseQueryImpl<?> query)
Ensures the alias is generated.
|
String |
generateJpqlRestriction(BaseQueryImpl<?> query)
Returns the JPQL where fragment.
|
String |
generateJpqlSelect(AbstractCriteriaQueryImpl<?> query,
boolean selected)
Returns the JPQL select fragment.
|
T |
handle(QueryImpl<?> query,
SessionImpl session,
ResultSet row)
Handles the row.
|
void |
setParameter(MetamodelImpl metamodel,
Connection connection,
Object[] parameters,
org.apache.commons.lang.mutable.MutableInt sqlIndex)
Sets the parameters expanding if necessary.
|
ensureTypeResolved, generateSqlSelect, getExpandedCount, getSqlRestrictionFragments, setParameteras, getConverter, in, in, in, in, isNotNull, isNull, setConverteralias, getAlias, getCompoundSelectionItems, isCompoundSelection, isEntityListgetJavaTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected void ensureAlias(BaseQueryImpl<?> query)
ensureAlias in class AbstractParameterExpressionImpl<T>query - the querypublic String generateJpqlRestriction(BaseQueryImpl<?> query)
generateJpqlRestriction in class AbstractExpression<T>query - the querypublic String generateJpqlSelect(AbstractCriteriaQueryImpl<?> query, boolean selected)
generateJpqlSelect in class AbstractParameterExpressionImpl<T>query - the criteria queryselected - if the selection is selectedpublic 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 void setParameter(MetamodelImpl metamodel, Connection connection, Object[] parameters, org.apache.commons.lang.mutable.MutableInt sqlIndex)
metamodel - the metamodelconnection - the connectionparameters - the SQL parameterssqlIndex - the index corresponding to expanded SQL parameterCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.