Package org.hibernate.engine.query.spi
Class NativeSQLQueryPlan
- java.lang.Object
-
- org.hibernate.engine.query.spi.NativeSQLQueryPlan
-
- All Implemented Interfaces:
java.io.Serializable
public class NativeSQLQueryPlan extends java.lang.Object implements java.io.Serializable
Defines a query execution plan for a native-SQL query.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NativeSQLQueryPlan(java.lang.String sourceQuery, CustomQuery customQuery)
Constructs a NativeSQLQueryPlan.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
coordinateSharedCacheCleanup(SharedSessionContractImplementor session)
CustomQuery
getCustomQuery()
java.lang.String
getSourceQuery()
int
performExecuteUpdate(QueryParameters queryParameters, SharedSessionContractImplementor session)
Performs the execute query
-
-
-
Constructor Detail
-
NativeSQLQueryPlan
public NativeSQLQueryPlan(java.lang.String sourceQuery, CustomQuery customQuery)
Constructs a NativeSQLQueryPlan.- Parameters:
sourceQuery
- The original native query to create a plan forcustomQuery
- The query executed via this plan
-
-
Method Detail
-
getSourceQuery
public java.lang.String getSourceQuery()
-
getCustomQuery
public CustomQuery getCustomQuery()
-
coordinateSharedCacheCleanup
protected void coordinateSharedCacheCleanup(SharedSessionContractImplementor session)
-
performExecuteUpdate
public int performExecuteUpdate(QueryParameters queryParameters, SharedSessionContractImplementor session) throws HibernateException
Performs the execute query- Parameters:
queryParameters
- The query parameterssession
- The session- Returns:
- The number of affected rows as returned by the JDBC driver
- Throws:
HibernateException
- Indicates a problem performing the query execution
-
-