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 void
afterStatement(LogicalConnectionImplementor logicalConnection)
Hook to allow delaying calls toLogicalConnectionImplementor.afterStatement()
.Callback
getCallback()
CollectionKey
getCollectionKey()
Get the collection key for the collection which is to be loaded immediately.Object
getEntityId()
Object
getEntityInstance()
Should only be used when initializing a bytecode-proxyLoadQueryInfluencers
getLoadQueryInfluencers()
String
getQueryIdentifier(String sql)
QueryOptions
getQueryOptions()
QueryParameterBindings
getQueryParameterBindings()
SharedSessionContractImplementor
getSession()
void
registerLoadingEntityEntry(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:
getQueryIdentifier
in interfaceExecutionContext
-
getSession
public SharedSessionContractImplementor getSession()
- Specified by:
getSession
in interfaceExecutionContext
-
getQueryOptions
public QueryOptions getQueryOptions()
- Specified by:
getQueryOptions
in interfaceExecutionContext
-
getLoadQueryInfluencers
public LoadQueryInfluencers getLoadQueryInfluencers()
- Specified by:
getLoadQueryInfluencers
in interfaceExecutionContext
-
getQueryParameterBindings
public QueryParameterBindings getQueryParameterBindings()
- Specified by:
getQueryParameterBindings
in interfaceExecutionContext
-
getCallback
public Callback getCallback()
- Specified by:
getCallback
in interfaceExecutionContext
-
getCollectionKey
public CollectionKey getCollectionKey()
Description copied from interface:ExecutionContext
Get the collection key for the collection which is to be loaded immediately.- Specified by:
getCollectionKey
in interfaceExecutionContext
-
getEntityInstance
public Object getEntityInstance()
Description copied from interface:ExecutionContext
Should only be used when initializing a bytecode-proxy- Specified by:
getEntityInstance
in interfaceExecutionContext
-
getEntityId
public Object getEntityId()
- Specified by:
getEntityId
in interfaceExecutionContext
-
registerLoadingEntityEntry
public void registerLoadingEntityEntry(EntityKey entityKey, LoadingEntityEntry entry)
- Specified by:
registerLoadingEntityEntry
in interfaceExecutionContext
-
afterStatement
public void afterStatement(LogicalConnectionImplementor logicalConnection)
Description copied from interface:ExecutionContext
Hook 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:
afterStatement
in interfaceExecutionContext
-
-