X - the type of the selectionpublic class CompoundSelectionImpl<X> extends AbstractSelection<X> implements javax.persistence.criteria.CompoundSelection<X>
CompoundSelection.| Constructor and Description |
|---|
CompoundSelectionImpl(Class<X> javaType,
List<javax.persistence.criteria.Selection<?>> selections) |
CompoundSelectionImpl(Class<X> javaType,
javax.persistence.criteria.Selection<?>... selections)
constructJoins
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
X |
handle(QueryImpl<?> query,
SessionImpl session,
ResultSet row)
Handles the row.
|
boolean |
isEntityList()
Returns if the selection is comprises of entities only.
|
alias, getAlias, getCompoundSelectionItems, isCompoundSelectiongetJavaTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic CompoundSelectionImpl(Class<X> javaType, List<javax.persistence.criteria.Selection<?>> selections)
javaType - the java typeselections - the selectionspublic String generateJpqlSelect(AbstractCriteriaQueryImpl<?> query, boolean selected)
generateJpqlSelect in class AbstractSelection<X>query - the criteria queryselected - if the selection is selectedpublic String generateSqlSelect(AbstractCriteriaQueryImpl<?> query, boolean selected)
generateSqlSelect in class AbstractSelection<X>query - the queryselected - if the selection is selectedpublic String[] getSqlRestrictionFragments(BaseQueryImpl<?> query)
getSqlRestrictionFragments in class AbstractSelection<X>query - the querypublic X handle(QueryImpl<?> query, SessionImpl session, ResultSet row) throws SQLException
handle in class AbstractSelection<X>query - the querysession - the sessionrow - the rowSQLException - thrown in case of an underlying SQL Errorpublic boolean isEntityList()
isEntityList in class AbstractSelection<X>Copyright © 2012-2013 Batoo. All Rights Reserved.