Package org.hibernate.sql.exec.internal
Class DelegatingExecutionContext
- java.lang.Object
-
- org.hibernate.sql.exec.internal.DelegatingExecutionContext
-
- All Implemented Interfaces:
ExecutionContext
public class DelegatingExecutionContext extends Object implements ExecutionContext
-
-
Constructor Summary
Constructors Constructor Description DelegatingExecutionContext(ExecutionContext executionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterStatement(LogicalConnectionImplementor logicalConnection)Hook to allow delaying calls toLogicalConnectionImplementor.afterStatement().CallbackgetCallback()CollectionKeygetCollectionKey()Get the collection key for the collection which is to be loaded immediately.ObjectgetEntityId()ObjectgetEntityInstance()Should only be used when initializing a bytecode-proxyLoadQueryInfluencersgetLoadQueryInfluencers()StringgetQueryIdentifier(String sql)QueryOptionsgetQueryOptions()QueryParameterBindingsgetQueryParameterBindings()SharedSessionContractImplementorgetSession()voidregisterLoadingEntityEntry(EntityKey entityKey, LoadingEntityEntry entry)-
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
hasQueryExecutionToBeAddedToStatistics, isScrollResult
-
-
-
-
Constructor Detail
-
DelegatingExecutionContext
public DelegatingExecutionContext(ExecutionContext executionContext)
-
-
Method Detail
-
getQueryIdentifier
public String getQueryIdentifier(String sql)
- Specified by:
getQueryIdentifierin interfaceExecutionContext
-
getSession
public SharedSessionContractImplementor getSession()
- Specified by:
getSessionin interfaceExecutionContext
-
getQueryOptions
public QueryOptions getQueryOptions()
- Specified by:
getQueryOptionsin interfaceExecutionContext
-
getLoadQueryInfluencers
public LoadQueryInfluencers getLoadQueryInfluencers()
- Specified by:
getLoadQueryInfluencersin interfaceExecutionContext
-
getQueryParameterBindings
public QueryParameterBindings getQueryParameterBindings()
- Specified by:
getQueryParameterBindingsin interfaceExecutionContext
-
getCallback
public Callback getCallback()
- Specified by:
getCallbackin interfaceExecutionContext
-
getCollectionKey
public CollectionKey getCollectionKey()
Description copied from interface:ExecutionContextGet the collection key for the collection which is to be loaded immediately.- Specified by:
getCollectionKeyin interfaceExecutionContext
-
getEntityInstance
public Object getEntityInstance()
Description copied from interface:ExecutionContextShould only be used when initializing a bytecode-proxy- Specified by:
getEntityInstancein interfaceExecutionContext
-
getEntityId
public Object getEntityId()
- Specified by:
getEntityIdin interfaceExecutionContext
-
registerLoadingEntityEntry
public void registerLoadingEntityEntry(EntityKey entityKey, LoadingEntityEntry entry)
- Specified by:
registerLoadingEntityEntryin interfaceExecutionContext
-
afterStatement
public void afterStatement(LogicalConnectionImplementor logicalConnection)
Description copied from interface:ExecutionContextHook to allow delaying calls toLogicalConnectionImplementor.afterStatement(). Mainly used in the case of batching and multi-table mutations todo (6.0) : come back and make sure we are calling this at appropriate times. despite the name, it should be called after a logical group of statements - e.g., after all of the delete statements against all of the tables for a particular entity- Specified by:
afterStatementin interfaceExecutionContext
-
-