Z - the source type of the fetchX - the target type of the fetchpublic class FetchImpl<Z,X> extends FetchParentImpl<Z,X> implements javax.persistence.criteria.Fetch<Z,X>
Fetch.| Constructor and Description |
|---|
FetchImpl(FetchParentImpl<?,Z> parent,
JoinedMapping<? super Z,?,X> mapping,
javax.persistence.criteria.JoinType joinType) |
| Modifier and Type | Method and Description |
|---|---|
String |
generateJpqlFetches(String parent)
Returns the description of the fetch.
|
void |
generateSqlJoins(AbstractCriteriaQueryImpl<?> query,
List<String> selfJoins)
Generates the self SQL joins fragments.
|
AttributeImpl<? super Z,?> |
getAttribute() |
javax.persistence.criteria.JoinType |
getJoinType() |
JoinedMapping<? super Z,?,X> |
getMapping()
Returns the mapping of the fetch.
|
FetchParentImpl<?,Z> |
getParent() |
String |
getPrimaryTableAlias(BaseQueryImpl<?> query)
Returns the alias of the primary table.
|
fetch, fetch, fetch, fetch, fetch, fetch, generateDiscrimination, generateSqlJoins, generateSqlSelect, generateSqlSelect, getDiscriminatorAlias, getEntity, getFetches, getSqlRestrictionFragments, getTableAlias, handle, handle, handleElementFetch, handleElementFetch, handleFetch, joinpublic FetchImpl(FetchParentImpl<?,Z> parent, JoinedMapping<? super Z,?,X> mapping, javax.persistence.criteria.JoinType joinType)
parent - the parent of the joinmapping - the mapping of the joinjoinType - the join typepublic String generateJpqlFetches(String parent)
generateJpqlFetches in class FetchParentImpl<Z,X>parent - the parentpublic void generateSqlJoins(AbstractCriteriaQueryImpl<?> query, List<String> selfJoins)
generateSqlJoins in class FetchParentImpl<Z,X>query - the queryselfJoins - the list of self joinspublic AttributeImpl<? super Z,?> getAttribute()
public javax.persistence.criteria.JoinType getJoinType()
public JoinedMapping<? super Z,?,X> getMapping()
getMapping in class FetchParentImpl<Z,X>null if the fetch is rootpublic FetchParentImpl<?,Z> getParent()
public String getPrimaryTableAlias(BaseQueryImpl<?> query)
getPrimaryTableAlias in class FetchParentImpl<Z,X>query - the queryCopyright © 2012-2013 Batoo. All Rights Reserved.