X - the type of the selection itempublic abstract class AbstractSelection<X> extends TupleElementImpl<X> implements Selection<X>
| Constructor and Description |
|---|
AbstractSelection(Class<X> javaType) |
| Modifier and Type | Method and Description |
|---|---|
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<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.
|
getJavaTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetJavaTypepublic 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 TupleElement<X>public List<Selection<?>> getCompoundSelectionItems()
getCompoundSelectionItems in interface 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 Selection<X>public boolean isEntityList()
Copyright © 2012 Batoo Software & Consultancy. All Rights Reserved.