public class SubselectFetch extends Object
Constructor and Description |
---|
SubselectFetch(String alias,
Loadable loadable,
QueryParameters queryParameters,
Set resultingEntityKeys,
Map namedParameterLocMap)
Construct a SubselectFetch instance.
|
SubselectFetch(String subselectFetchQueryFragment,
String alias,
Loadable loadable,
QueryParameters queryParameters,
Set resultingEntityKeys,
Map namedParameterLocMap)
Construct a SubselectFetch instance using the provided subselect fetch query fragment,
subselectFetchQueryFragment . |
Modifier and Type | Method and Description |
---|---|
static String |
createSubselectFetchQueryFragment(QueryParameters queryParameters)
Create the subselect fetch query fragment for the provided
QueryParameters
with SELECT and ORDER BY clauses removed. |
Map |
getNamedParameterLocMap() |
QueryParameters |
getQueryParameters() |
Set |
getResult()
Get the Set of EntityKeys
|
String |
toString() |
String |
toSubselectString(String ukname) |
public SubselectFetch(String alias, Loadable loadable, QueryParameters queryParameters, Set resultingEntityKeys, Map namedParameterLocMap)
createSubselectFetchQueryFragment(org.hibernate.engine.spi.QueryParameters)
.
If the same value for queryParameters
is to be used when constructing multiple
SubselectFetch objects, then it is preferable to generate the subselect fetch query
fragment using createSubselectFetchQueryFragment(org.hibernate.engine.spi.QueryParameters)
, and pass the result as an
argument to constructor SubselectFetch(String, String, Loadable, QueryParameters, Set, Map)
.alias
- - the table alias used in the subselect fetch query fragment
(to be generated by createSubselectFetchQueryFragment(QueryParameters)
that
corresponds to loadable
;loadable
- - the Loadable
for the associated entities to be subselect fetched;queryParameters
- - the query parameters;resultingEntityKeys
- - the EntityKey
objects for the entities to be subselect fetched;namedParameterLocMap
- - mapping from named parameter to the parameter index located in the
subselect fetch query fragment.SubselectFetch(String, String, Loadable, QueryParameters, Set, Map)
public SubselectFetch(String subselectFetchQueryFragment, String alias, Loadable loadable, QueryParameters queryParameters, Set resultingEntityKeys, Map namedParameterLocMap)
subselectFetchQueryFragment
. It is assumed that subselectFetchQueryFragment
is the result of calling createSubselectFetchQueryFragment(org.hibernate.engine.spi.QueryParameters)
with the same value
provided for queryParameters
.subselectFetchQueryFragment
- - the subselect fetch query fragment;alias
- - the table alias used in subselectFetchQueryFragment
that
corresponds to loadable
;loadable
- - the Loadable
for the associated entities to be subselect fetched;queryParameters
- - the query parameters;resultingEntityKeys
- - the EntityKey
objects for the entities to be subselect fetched;namedParameterLocMap
- - mapping from named parameter to the parameter index located in the
subselect fetch query fragment.public static String createSubselectFetchQueryFragment(QueryParameters queryParameters)
QueryParameters
with SELECT and ORDER BY clauses removed.queryParameters
- -the query parameters.public QueryParameters getQueryParameters()
public Set getResult()
public Map getNamedParameterLocMap()
Copyright © 2016 JBoss by Red Hat. All rights reserved.