C - the type of the collectionE - the type of the elementpublic class CollectionExpression<C extends Collection<E>,E> extends AbstractExpression<C>
| Constructor and Description |
|---|
CollectionExpression(ParentPath<?,?> parentPath,
Mapping<?,Collection<E>,E> mapping) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
Mapping<?,Collection<E>,E> |
getMapping()
Returns the mapping of the CollectionExpression.
|
ParentPath<?,?> |
getParentPath()
Returns the parentPath of the CollectionExpression.
|
String[] |
getSqlRestrictionFragments(BaseQueryImpl<?> query)
Returns the SQL restriction fragments.
|
C |
handle(QueryImpl<?> query,
SessionImpl session,
ResultSet row)
Handles the row.
|
String |
toString() |
as, getConverter, in, in, in, in, isNotNull, isNull, setConverteralias, getAlias, getCompoundSelectionItems, isCompoundSelection, isEntityListgetJavaTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitalias, getCompoundSelectionItems, isCompoundSelectiongetAlias, getJavaTypepublic CollectionExpression(ParentPath<?,?> parentPath, Mapping<?,Collection<E>,E> mapping)
parentPath - the parent pathmapping - the mappingpublic String generateJpqlRestriction(BaseQueryImpl<?> query)
generateJpqlRestriction in class AbstractExpression<C extends Collection<E>>query - the querypublic String generateJpqlSelect(AbstractCriteriaQueryImpl<?> query, boolean selected)
generateJpqlSelect in class AbstractSelection<C extends Collection<E>>query - the criteria queryselected - if the selection is selectedpublic String generateSqlSelect(AbstractCriteriaQueryImpl<?> query, boolean selected)
generateSqlSelect in class AbstractSelection<C extends Collection<E>>query - the queryselected - if the selection is selectedpublic Mapping<?,Collection<E>,E> getMapping()
public ParentPath<?,?> getParentPath()
public String[] getSqlRestrictionFragments(BaseQueryImpl<?> query)
getSqlRestrictionFragments in class AbstractSelection<C extends Collection<E>>query - the querypublic C handle(QueryImpl<?> query, SessionImpl session, ResultSet row) throws SQLException
handle in class AbstractSelection<C extends Collection<E>>query - the querysession - the sessionrow - the rowSQLException - thrown in case of an underlying SQL ErrorCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.