Z - the type of the parent pathX - the type of the keypublic class MapKeyPath<Z,X> extends ParentPath<Z,X>
| Constructor and Description |
|---|
MapKeyPath(MapJoinImpl<Z,X,?> mapJoin,
Class<X> javaType) |
| 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.
|
FetchParentImpl<?,X> |
getFetchRoot()
Returns the fetch root of the path.
|
protected <C,Y> AbstractMapping<? super X,C,Y> |
getMapping(String name)
Returns the child mapping for the name.
|
MapAttributeImpl<?,?,X> |
getModel() |
String[] |
getSqlRestrictionFragments(BaseQueryImpl<?> query)
Returns the SQL restriction fragments.
|
X |
handle(QueryImpl<?> query,
SessionImpl session,
ResultSet row)
Handles the row.
|
javax.persistence.criteria.Expression<Class<? extends X>> |
type() |
get, get, get, get, getColumnAlias, getExpressioncannotDereference, getParentPath, getRootPathas, getConverter, in, in, in, in, isNotNull, isNull, setConverteralias, getAlias, getCompoundSelectionItems, isCompoundSelection, isEntityListgetJavaTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitas, in, in, in, in, isNotNull, isNullpublic MapKeyPath(MapJoinImpl<Z,X,?> mapJoin, Class<X> javaType)
mapJoin - the map parentjavaType - the java type of the keypublic String generateJpqlRestriction(BaseQueryImpl<?> query)
generateJpqlRestriction in class AbstractExpression<X>query - the querypublic 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 FetchParentImpl<?,X> getFetchRoot()
getFetchRoot in class ParentPath<Z,X>protected <C,Y> AbstractMapping<? super X,C,Y> getMapping(String name)
getMapping in class ParentPath<Z,X>C - the collection type of the child mappingY - the type of the child mappingname - the name of the child mappingpublic MapAttributeImpl<?,?,X> getModel()
public 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 ErrorCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.