X - the type of the selection itempublic abstract class AbstractSelection<X> extends TupleElementImpl<X> implements javax.persistence.criteria.Selection<X>
| Constructor and Description |
|---|
AbstractSelection(Class<X> javaType) |
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.criteria.Selection<X> |
alias(String alias) |
abstract String |
generateJpqlSelect(AbstractCriteriaQueryImpl<?> query,
boolean selected)
Returns the JPQL select fragment.
|
abstract String |
generateSqlSelect(AbstractCriteriaQueryImpl<?> query,
boolean selected)
Returns the SQL select fragment.
|
String |
getAlias() |
List<javax.persistence.criteria.Selection<?>> |
getCompoundSelectionItems() |
abstract String[] |
getSqlRestrictionFragments(BaseQueryImpl<?> query)
Returns the SQL restriction fragments.
|
abstract X |
handle(QueryImpl<?> query,
SessionImpl session,
ResultSet row)
Handles the row.
|
boolean |
isCompoundSelection() |
boolean |
isEntityList()
Returns if the selection is comprises of entities only.
|
getJavaTypepublic javax.persistence.criteria.Selection<X> alias(String alias)
alias in interface javax.persistence.criteria.Selection<X>public abstract String generateJpqlSelect(AbstractCriteriaQueryImpl<?> query, boolean selected)
query - the criteria queryselected - if the selection is selectedpublic abstract String generateSqlSelect(AbstractCriteriaQueryImpl<?> query, boolean selected)
query - the queryselected - if the selection is selectedpublic String getAlias()
getAlias in interface javax.persistence.TupleElement<X>public List<javax.persistence.criteria.Selection<?>> getCompoundSelectionItems()
getCompoundSelectionItems in interface javax.persistence.criteria.Selection<X>public abstract String[] getSqlRestrictionFragments(BaseQueryImpl<?> query)
query - the querypublic abstract X handle(QueryImpl<?> query, SessionImpl session, ResultSet row) throws SQLException
query - the querysession - the sessionrow - the rowSQLException - thrown in case of an underlying SQL Errorpublic boolean isCompoundSelection()
isCompoundSelection in interface javax.persistence.criteria.Selection<X>public boolean isEntityList()
Copyright © 2012-2013 Batoo. All Rights Reserved.