Z - the source typeK - the key typeV - the value typepublic class MapJoinImpl<Z,K,V> extends AbstractPluralJoin<Z,Map<K,V>,V> implements javax.persistence.criteria.MapJoin<Z,K,V>
ListJoin.| Modifier and Type | Class and Description |
|---|---|
static class |
MapJoinImpl.MapSelectType
The select type for the map join
|
| Constructor and Description |
|---|
MapJoinImpl(AbstractFrom<?,Z> parent,
PluralMapping<? super Z,Map<K,V>,V> mapping,
javax.persistence.criteria.JoinType jointType) |
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.criteria.Expression<Map.Entry<K,V>> |
entry() |
String |
generateSqlSelect(AbstractCriteriaQueryImpl<?> query,
boolean selected)
Returns the SQL select fragment.
|
String |
generateSqlSelect(AbstractCriteriaQueryImpl<?> query,
boolean selected,
MapJoinImpl.MapSelectType selectType)
Returns the SQL select fragment.
|
MapAttributeImpl<? super Z,K,V> |
getModel() |
V |
handle(QueryImpl<?> query,
SessionImpl session,
ResultSet row)
Handles the row.
|
Object |
handle(SessionImpl session,
ResultSet row,
MapJoinImpl.MapSelectType selectType)
Handles the row.
|
javax.persistence.criteria.Path<K> |
key() |
javax.persistence.criteria.Expression<Class<?>> |
type(MapJoinImpl.MapSelectType selectType)
Create an expression corresponding to the type of the path.
|
javax.persistence.criteria.Path<V> |
value() |
getMappinggenerateJpqlJoins, generateJpqlSelect, getAttribute, getJoinType, getMapping, getParent, notSupportedensureAlias, fetch, fetch, fetch, fetch, fetch, fetch, generateDiscrimination, generateJpqlRestriction, generateSqlJoins, getCorrelationParent, getEntity, getFetches, getFetchRoot, getJoins, getSqlRestrictionFragments, getSqlRestrictionFragments, getTableAlias, isCorrelated, isEntityList, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinMap, joinMap, joinSet, joinSet, select, typeget, get, get, get, getColumnAlias, getExpressioncannotDereference, getParentPath, getRootPathas, getConverter, in, in, in, in, isNotNull, isNull, setConverteralias, getAlias, getCompoundSelectionItems, isCompoundSelectiongetJavaTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, getJoinType, getParentgetCorrelationParent, getJoins, isCorrelated, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinMap, joinMap, joinSet, joinSetget, get, get, get, getParentPath, typeas, in, in, in, in, isNotNull, isNullpublic MapJoinImpl(AbstractFrom<?,Z> parent, PluralMapping<? super Z,Map<K,V>,V> mapping, javax.persistence.criteria.JoinType jointType)
parent - the parentmapping - the mappingjointType - the join typepublic String generateSqlSelect(AbstractCriteriaQueryImpl<?> query, boolean selected)
generateSqlSelect in class AbstractFrom<Z,V>query - the queryselected - if the selection is selectedpublic String generateSqlSelect(AbstractCriteriaQueryImpl<?> query, boolean selected, MapJoinImpl.MapSelectType selectType)
query - the queryselected - id the join is selectedselectType - the select typepublic MapAttributeImpl<? super Z,K,V> getModel()
public V handle(QueryImpl<?> query, SessionImpl session, ResultSet row) throws SQLException
handle in class AbstractFrom<Z,V>query - the querysession - the sessionrow - the rowSQLException - thrown in case of an underlying SQL Errorpublic Object handle(SessionImpl session, ResultSet row, MapJoinImpl.MapSelectType selectType) throws SQLException
session - the sessionrow - the rowselectType - the map select typeSQLException - thrown in case of an underlying SQL Errorpublic javax.persistence.criteria.Path<K> key()
public javax.persistence.criteria.Expression<Class<?>> type(MapJoinImpl.MapSelectType selectType)
selectType - the select typeCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.