T - the type of the parameter expressionpublic class ParameterExpressionImpl<T> extends AbstractParameterExpressionImpl<T> implements javax.persistence.criteria.ParameterExpression<T>
| Constructor and Description |
|---|
ParameterExpressionImpl(BaseQueryImpl<?> q,
TypeImpl<T> type,
Class<T> paramClass,
int position) |
ParameterExpressionImpl(TypeImpl<T> type,
Class<T> paramClass,
String name) |
| 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.
|
String |
generateSqlSelect(AbstractCriteriaQueryImpl<?> query,
boolean selected)
Returns the SQL select fragment.
|
String |
getName() |
Class<T> |
getParameterType() |
Integer |
getPosition() |
T |
handle(QueryImpl<?> query,
SessionImpl session,
ResultSet row)
Handles the row.
|
void |
setParameter(MetamodelImpl metamodel,
Connection connections,
Object[] parameters,
org.apache.commons.lang.mutable.MutableInt sqlIndex,
Object value)
Sets the parameters expanding if necessary.
|
ensureTypeResolved, getExpandedCount, getSqlRestrictionFragmentsas, 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, isNullpublic ParameterExpressionImpl(BaseQueryImpl<?> q, TypeImpl<T> type, Class<T> paramClass, int position)
q - the querytype - the persistent type of the parameterparamClass - the class of the parameterposition - the ordinal position of the parameterprotected 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 String generateSqlSelect(AbstractCriteriaQueryImpl<?> query, boolean selected)
generateSqlSelect in class AbstractParameterExpressionImpl<T>query - the queryselected - if the selection is selectedpublic Class<T> getParameterType()
getParameterType in interface javax.persistence.Parameter<T>public Integer getPosition()
getPosition in interface javax.persistence.Parameter<T>public 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 connections, Object[] parameters, org.apache.commons.lang.mutable.MutableInt sqlIndex, Object value)
setParameter in class AbstractParameterExpressionImpl<T>metamodel - the metamodelconnections - the connectionparameters - the SQL parameterssqlIndex - the index corresponding to expanded SQL parametervalue - the value to set to the parameterCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.