Top Description Fields Constructors Methods
org.hibernate.engine.query.spi

public Class NativeSQLQueryPlan

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.sql.PreparedStatement, .SQLException, org.hibernate.HibernateException, org.hibernate.action.internal.BulkOperationCleanupAction, org.hibernate.engine.spi.QueryParameters, .RowSelection, .SharedSessionContractImplementor, org.hibernate.event.spi.EventSource, org.hibernate.internal.CoreLogging, .CoreMessageLogger, org.hibernate.loader.custom.CustomQuery, org.hibernate.param.ParameterBinder

Defines a query execution plan for a native-SQL query.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final CustomQuery
private static final CoreMessageLogger
private final String

Constructor Summary

AccessConstructor and Description
public
NativeSQLQueryPlan(String
The original native query to create a plan for
sourceQuery
,
CustomQuery
The query executed via this plan
customQuery
)

Constructs a NativeSQLQueryPlan.

Method Summary

Modifier and TypeMethod and Description
protected void
public CustomQuery
public String
public int

Returns:

The number of affected rows as returned by the JDBC driver
performExecuteUpdate
(QueryParameters
The query parameters
queryParameters
,
SharedSessionContractImplementor
The session
session
)

Performs the execute query

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

customQueryback to summary
private final CustomQuery customQuery
LOGback to summary
private static final CoreMessageLogger LOG
sourceQueryback to summary
private final String sourceQuery

Constructor Detail

NativeSQLQueryPlanback to summary
public NativeSQLQueryPlan(String sourceQuery, CustomQuery customQuery)

Constructs a NativeSQLQueryPlan.

Parameters
sourceQuery:String

The original native query to create a plan for

customQuery:CustomQuery

The query executed via this plan

Method Detail

coordinateSharedCacheCleanupback to summary
protected void coordinateSharedCacheCleanup(SharedSessionContractImplementor session)
getCustomQueryback to summary
public CustomQuery getCustomQuery()
getSourceQueryback to summary
public String getSourceQuery()
performExecuteUpdateback to summary
public int performExecuteUpdate(QueryParameters queryParameters, SharedSessionContractImplementor session) throws HibernateException

Performs the execute query

Parameters
queryParameters:QueryParameters

The query parameters

session:SharedSessionContractImplementor

The session

Returns:int

The number of affected rows as returned by the JDBC driver

Exceptions
HibernateException:
Indicates a problem performing the query execution