T - the type of the parameter expressionpublic abstract class AbstractParameterExpressionImpl<T> extends AbstractExpression<T>
| Constructor and Description |
|---|
AbstractParameterExpressionImpl(TypeImpl<T> type,
Class<T> paramClass) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
ensureAlias(BaseQueryImpl<?> query)
Ensures the alias is generated.
|
protected void |
ensureTypeResolved(MetamodelImpl metamodel)
Ensures the type has been resolved.
|
String |
generateJpqlSelect(AbstractCriteriaQueryImpl<?> query,
boolean selected)
Returns the JPQL select fragment.
|
String |
generateSqlSelect(AbstractCriteriaQueryImpl<?> query,
boolean selected)
Returns the SQL select fragment.
|
int |
getExpandedCount(MetamodelImpl metamodelImpl)
Returns the number of SQL parameters when expanded.
|
String[] |
getSqlRestrictionFragments(BaseQueryImpl<?> query)
Returns the SQL restriction fragments.
|
protected void |
setParameter(MetamodelImpl metamodel,
Connection connection,
Object[] parameters,
org.apache.commons.lang.mutable.MutableInt sqlIndex,
Object value)
Sets the parameters expanding if necessary.
|
as, generateJpqlRestriction, getConverter, in, in, in, in, isNotNull, isNull, setConverteralias, getAlias, getCompoundSelectionItems, handle, isCompoundSelection, isEntityListgetJavaTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected abstract void ensureAlias(BaseQueryImpl<?> query)
query - the queryprotected void ensureTypeResolved(MetamodelImpl metamodel)
metamodel - the metamodelpublic 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 int getExpandedCount(MetamodelImpl metamodelImpl)
metamodelImpl - the metamodelpublic String[] getSqlRestrictionFragments(BaseQueryImpl<?> query)
getSqlRestrictionFragments in class AbstractSelection<T>query - the queryprotected void setParameter(MetamodelImpl metamodel, Connection connection, Object[] parameters, org.apache.commons.lang.mutable.MutableInt sqlIndex, Object value)
metamodel - the metamodelconnection - 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.