Package org.hibernate.query.sqm.internal
Class SqmJdbcExecutionContextAdapter
java.lang.Object
org.hibernate.sql.exec.internal.BaseExecutionContext
org.hibernate.query.sqm.internal.SqmJdbcExecutionContextAdapter
- All Implemented Interfaces:
ExecutionContext
ExecutionContext adapter delegating to a DomainQueryExecutionContext
-
Constructor Summary
ConstructorsConstructorDescriptionSqmJdbcExecutionContextAdapter
(DomainQueryExecutionContext sqmExecutionContext, JdbcOperationQuerySelect jdbcSelect) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Determine if the query execution has to be considered by theStatistics
.omittingLockingAndPaging
(DomainQueryExecutionContext sqmExecutionContext) Creates an adapter which drops any locking or paging details from the query optionsboolean
Does this query return objects that might be already cached by the session, whose lock mode may need upgradingusingLockingAndPaging
(DomainQueryExecutionContext sqmExecutionContext) Creates an adapter which honors any locking or paging details specified in the query optionsMethods inherited from class org.hibernate.sql.exec.internal.BaseExecutionContext
getLoadQueryInfluencers, getQueryIdentifier, getSession
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.sql.exec.spi.ExecutionContext
afterStatement, getCollectionKey, getEntityId, getEntityInstance, getEntityUniqueKey, getEntityUniqueKeyAttributePath, getRootEntityDescriptor, isScrollResult, registerLoadingEntityHolder
-
Constructor Details
-
SqmJdbcExecutionContextAdapter
public SqmJdbcExecutionContextAdapter(DomainQueryExecutionContext sqmExecutionContext, JdbcOperationQuerySelect jdbcSelect)
-
-
Method Details
-
omittingLockingAndPaging
public static SqmJdbcExecutionContextAdapter omittingLockingAndPaging(DomainQueryExecutionContext sqmExecutionContext) Creates an adapter which drops any locking or paging details from the query options -
usingLockingAndPaging
public static SqmJdbcExecutionContextAdapter usingLockingAndPaging(DomainQueryExecutionContext sqmExecutionContext) Creates an adapter which honors any locking or paging details specified in the query options -
getQueryOptions
- Specified by:
getQueryOptions
in interfaceExecutionContext
- Overrides:
getQueryOptions
in classBaseExecutionContext
-
getQueryParameterBindings
- Specified by:
getQueryParameterBindings
in interfaceExecutionContext
- Overrides:
getQueryParameterBindings
in classBaseExecutionContext
-
getCallback
- Specified by:
getCallback
in interfaceExecutionContext
- Overrides:
getCallback
in classBaseExecutionContext
-
hasCallbackActions
public boolean hasCallbackActions() -
hasQueryExecutionToBeAddedToStatistics
public boolean hasQueryExecutionToBeAddedToStatistics()Description copied from interface:ExecutionContext
Determine if the query execution has to be considered by theStatistics
.- Returns:
- true if the query execution has to be added to the
Statistics
, false otherwise.
-
upgradeLocks
public boolean upgradeLocks()Description copied from interface:ExecutionContext
Does this query return objects that might be already cached by the session, whose lock mode may need upgrading
-