Top Fields Constructors Methods
org.hibernate.query.internal

public Class QueryImpl<R>

extends AbstractProducedQuery<R>
implements Query<R>
Class Inheritance
All Implemented Interfaces
org.hibernate.query.Query, org.hibernate.query.CommonQueryContract, org.hibernate.BasicQueryContract, org.hibernate.Query, javax.persistence.TypedQuery, javax.persistence.Query
Imports
org.hibernate.engine.query.spi.HQLQueryPlan, .ReturnMetadata, org.hibernate.engine.spi.QueryParameters, .SharedSessionContractImplementor, org.hibernate.query.Query, org.hibernate.query.spi.QueryParameterBindings, org.hibernate.type.Type

Deprecated

as a consequence of AbstractProducedQuery and Query being deprecated. See corresponding docs for further information.

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final HQLQueryPlan
private final QueryParameterBindingsImpl
private final String

Constructor Summary

AccessConstructor and Description
public
QueryImpl(SharedSessionContractImplementor producer, HQLQueryPlan hqlQueryPlan, String queryString)

Method Summary

Modifier and TypeMethod and Description
protected void
protected QueryParameterBindings
public HQLQueryPlan
public String
getQueryString()

Implements org.hibernate.query.Query.getQueryString.

Get the query string.
public String[]
public Type[]
getReturnTypes()

Implements org.hibernate.Query.getReturnTypes, org.hibernate.BasicQueryContract.getReturnTypes.

Return the Hibernate types of the query results.
protected boolean
isNativeQuery()

Implements abstract org.hibernate.query.internal.AbstractProducedQuery.isNativeQuery.

Is the query represented here a native (SQL) query?
protected boolean
public Query<R>
setEntity(int
the position of the parameter in the query string, numbered from 0.
position
,
Object
a non-null instance of a persistent class
val
)

Implements org.hibernate.query.Query.setEntity.

Deprecated as a consequence of Query being deprecated.
Bind an instance of a mapped persistent class to a JDBC-style query parameter.
public Query<R>
setEntity(String
the name of the parameter
name
,
Object
a non-null instance of a persistent class
val
)

Implements org.hibernate.query.Query.setEntity.

Deprecated as a consequence of Query being deprecated.
Bind an instance of a mapped persistent class to a named query parameter.
Inherited from org.hibernate.query.internal.AbstractProducedQuery:
addQueryHintafterQueryapplyAliasSpecificLockModeHintapplyCacheableHintapplyCacheModeHintapplyCacheRegionHintapplyCommentHintapplyEntityGraphQueryHintapplyFetchSizeHintapplyFlushModeHintapplyFollowOnLockingHintapplyGraphapplyHibernateLockModeHintapplyJpaCacheRetrieveModeapplyJpaCacheStoreModeapplyLockModeTypeHintapplyLockTimeoutHintapplyNativeQueryLockModeapplyPassDistinctThroughapplyQuerySpacesapplyReadOnlyHintapplyTimeoutHintbeforeQuerycanApplyAliasSpecificLockModeHintscollectBaselineHintscollectHintsdetermineProperBooleanTypedetermineProperBooleanTypedetermineTypedoExecuteUpdatedoIteratedoListdoScrollexecuteUpdategetCacheModegetCacheRegiongetCommentgetExceptionConvertergetFetchSizegetFirstResultgetFlushModegetHibernateFlushModegetHintsgetLockModegetLockOptionsgetMaxResultsgetNamedParameterMapgetNamedParametersgetParametergetParametergetParametergetParametergetParameterMetadatagetParametersgetParameterValuegetParameterValuegetParameterValuegetPositionalParameterTypesgetPositionalParameterValuesgetProducergetQueryOptionsgetQueryParametersgetSingleResultgetSupportedHintsgetTimeouthandleUnrecognizedHintisBoundisCacheableisCallableisReadOnlyiteratelistmakeQueryParametersForExecutionputIfNotNullputIfNotNullresolveEntityNamescrollscrollsetCacheablesetCacheModesetCacheRegionsetCommentsetFetchSizesetFirstResultsetFlushModesetFlushModesetHibernateFlushModesetHintsetLockModesetLockModesetLockOptionssetMaxResultssetOptionalEntityNamesetOptionalIdsetOptionalObjectsetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParameterListsetParameterListsetParameterListsetParameterListsetParameterListsetParameterListsetParameterListsetParameterListsetParameterListsetPropertiessetPropertiessetReadOnlysetResultTransformersetTimeoutstreamuniqueElementuniqueResultuniqueResultOptionalunwrap

Field Detail

hqlQueryPlanback to summary
private final HQLQueryPlan hqlQueryPlan
queryParameterBindingsback to summary
private final QueryParameterBindingsImpl queryParameterBindings
queryStringback to summary
private final String queryString

Constructor Detail

QueryImplback to summary
public QueryImpl(SharedSessionContractImplementor producer, HQLQueryPlan hqlQueryPlan, String queryString)

Method Detail

appendQueryPlanToQueryParametersback to summary
protected void appendQueryPlanToQueryParameters(String hql, QueryParameters queryParameters, HQLQueryPlan queryPlan)

Overrides org.hibernate.query.internal.AbstractProducedQuery.appendQueryPlanToQueryParameters.

Annotations
@Override
getQueryParameterBindingsback to summary
protected QueryParameterBindings getQueryParameterBindings()

Implements abstract org.hibernate.query.internal.AbstractProducedQuery.getQueryParameterBindings.

Annotations
@Override
getQueryPlanback to summary
public HQLQueryPlan getQueryPlan()
getQueryStringback to summary
public String getQueryString()

Implements org.hibernate.query.Query.getQueryString.

Doc from org.hibernate.Query.getQueryString.

Get the query string.

Returns:String

the query string

Annotations
@Override
getReturnAliasesback to summary
public String[] getReturnAliases()

Implements org.hibernate.Query.getReturnAliases.

Annotations
@Override
getReturnTypesback to summary
public Type[] getReturnTypes()

Implements org.hibernate.Query.getReturnTypes, org.hibernate.BasicQueryContract.getReturnTypes.

Doc from org.hibernate.Query.getReturnTypes.

Return the Hibernate types of the query results.

Returns:Type[]

an array of types

Annotations
@Override
isNativeQueryback to summary
protected boolean isNativeQuery()

Implements abstract org.hibernate.query.internal.AbstractProducedQuery.isNativeQuery.

Doc from org.hibernate.query.internal.AbstractProducedQuery.isNativeQuery.

Is the query represented here a native (SQL) query?

Returns:boolean

true if it is a native query; false otherwise

Annotations
@Override
isSelectback to summary
protected boolean isSelect()

Overrides org.hibernate.query.internal.AbstractProducedQuery.isSelect.

Annotations
@Override
setEntityback to summary
public Query<R> setEntity(int position, Object val)

Implements org.hibernate.query.Query.setEntity.

Doc from org.hibernate.query.Query.setEntity.

Deprecated

as a consequence of Query being deprecated. See corresponding docs for further information.

Bind an instance of a mapped persistent class to a JDBC-style query parameter. Use setParameter(int, Object) for null values.

Parameters
position:int

the position of the parameter in the query string, numbered from 0.

val:Object

a non-null instance of a persistent class

Returns:Query<R>

this, for method chaining

Annotations
@Override
setEntityback to summary
public Query<R> setEntity(String name, Object val)

Implements org.hibernate.query.Query.setEntity.

Doc from org.hibernate.query.Query.setEntity.

Deprecated

as a consequence of Query being deprecated. See corresponding docs for further information.

Bind an instance of a mapped persistent class to a named query parameter. Use setParameter(String, Object) for null values.

Parameters
name:String

the name of the parameter

val:Object

a non-null instance of a persistent class

Returns:Query<R>

this, for method chaining

Annotations
@Override