org.hibernate.engine.SessionImplementor |
![]() |
Defines the internal contract between the Session and other parts of Hibernate such as implementors of Type or EntityPersister.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Notify the session that the transaction completed, so we no longer
own the old locks.
| |||||||||||
Apply non-flushed changes from a different session to this session.
| |||||||||||
Notify the session that the transaction is about to complete
| |||||||||||
The best guess entity name for an entity not in an association
| |||||||||||
Execute a native SQL update or delete query
| |||||||||||
Execute a HQL update or delete query
| |||||||||||
Get the prepared statement Batcher for this session
| |||||||||||
Return the identifier of the persistent object, or null if
not associated with the session
| |||||||||||
This method is deprecated.
use #getLoadQueryInfluencers instead
| |||||||||||
Get the EntityPersister for any instance
| |||||||||||
Get the entity instance associated with the given Key,
calling the Interceptor if necessary
| |||||||||||
Get the creating SessionFactoryImplementor
| |||||||||||
This method is deprecated.
use #getLoadQueryInfluencers instead
| |||||||||||
This method is deprecated.
use #getLoadQueryInfluencers instead
| |||||||||||
This method is deprecated.
use #getLoadQueryInfluencers instead
| |||||||||||
Retrieves the interceptor currently in use by this event source.
| |||||||||||
Retrieves the configured event listeners from this event source.
| |||||||||||
Get the load query influencers associated with this session.
| |||||||||||
Get a Query instance for a named query or named native SQL query
| |||||||||||
Get a Query instance for a named native SQL query
| |||||||||||
Return changes to this session that have not been flushed yet.
| |||||||||||
Get the persistence context for this session
| |||||||||||
System time before the start of the transaction
| |||||||||||
The guessed entity name for an entity not in an association
| |||||||||||
Load an instance immediately.
| |||||||||||
Initialize the collection (if not already initialized)
| |||||||||||
Instantiate the entity class, initializing with the given identifier
| |||||||||||
Load an instance without checking if it was deleted.
| |||||||||||
Determine whether the session is closed.
| |||||||||||
Does this Session have an active Hibernate transaction
or is there a JTA transaction in progress?
| |||||||||||
Execute an iterate() query
| |||||||||||
Iterate a filter
| |||||||||||
Execute a native SQL query, and return the results as a fully built list.
| |||||||||||
Execute a find() query
| |||||||||||
Execute a criteria query
| |||||||||||
Execute an SQL Query
| |||||||||||
Execute a filter
| |||||||||||
Execute a criteria query
| |||||||||||
Execute a scroll() query
| |||||||||||
Execute a native SQL query, and return the results as a scrollable result.
| |||||||||||
Execute an SQL Query
| |||||||||||
Enable/disable automatic cache clearing from after transaction
completion (for EJB3)
| |||||||||||
This method is deprecated.
use #getLoadQueryInfluencers instead
| |||||||||||
Notify the session that the transaction completed, so we no longer own the old locks. (Also we should release cache softlocks.) May be called multiple times during the transaction completion process. Also called after an autocommit, in which case the second argument is null.
Apply non-flushed changes from a different session to this session. It is assumed that this SessionImpl is "clean" (e.g., has no non-flushed changes, no cached entities, no cached collections, no queued actions). The specified NonFlushedChanges object cannot be bound to any session.
nonFlushedChanges | the non-flushed changes |
---|
HibernateException |
---|
Notify the session that the transaction is about to complete
The best guess entity name for an entity not in an association
Execute a native SQL update or delete query
HibernateException |
---|
Execute a HQL update or delete query
HibernateException |
---|
Return the identifier of the persistent object, or null if not associated with the session
This method is deprecated.
use #getLoadQueryInfluencers instead
Return the currently enabled filters. The filter map is keyed by filter
name, with values corresponding to the FilterImpl
instance.
Get the EntityPersister for any instance
entityName | optional entity name |
---|---|
object | the entity instance |
HibernateException |
---|
Get the entity instance associated with the given Key, calling the Interceptor if necessary
HibernateException |
---|
This method is deprecated.
use #getLoadQueryInfluencers instead
Get the internal fetch profile currently associated with this session.
This method is deprecated.
use #getLoadQueryInfluencers instead
Retreive the type for a given filter parrameter.
filterParameterName | The filter parameter name in the format {FILTER_NAME.PARAMETER_NAME}. |
---|
This method is deprecated.
use #getLoadQueryInfluencers instead
Retreive the currently set value for a filter parameter.
filterParameterName | The filter parameter name in the format {FILTER_NAME.PARAMETER_NAME}. |
---|
Retrieves the interceptor currently in use by this event source.
Retrieves the configured event listeners from this event source.
Get the load query influencers associated with this session.
Get a Query instance for a named query or named native SQL query
Get a Query instance for a named native SQL query
Return changes to this session that have not been flushed yet.
HibernateException |
---|
Get the persistence context for this session
System time before the start of the transaction
The guessed entity name for an entity not in an association
HibernateException |
---|
Load an instance immediately. This method is only called when lazily initializing a proxy. Do not return the proxy.
HibernateException |
---|
Initialize the collection (if not already initialized)
HibernateException |
---|
Instantiate the entity class, initializing with the given identifier
HibernateException |
---|
Load an instance without checking if it was deleted. When nullable is disabled this method may create a new proxy or return an existing proxy; if it does not exist, throw an exception. When nullable is enabled, the method does not create new proxies (but might return an existing proxy); if it does not exist, return null. When eager is enabled, the object is eagerly fetched
HibernateException |
---|
Does this Session have an active Hibernate transaction or is there a JTA transaction in progress?
Execute an iterate() query
HibernateException |
---|
Iterate a filter
HibernateException |
---|
Execute a native SQL query, and return the results as a fully built list.
spec | The specification of the native SQL query to execute. |
---|---|
queryParameters | The parameters by which to perform the execution. |
HibernateException |
---|
Execute a find() query
HibernateException |
---|
Execute an SQL Query
HibernateException |
---|
Execute a filter
HibernateException |
---|
Execute a criteria query
Execute a scroll() query
HibernateException |
---|
Execute a native SQL query, and return the results as a scrollable result.
spec | The specification of the native SQL query to execute. |
---|---|
queryParameters | The parameters by which to perform the execution. |
HibernateException |
---|
Execute an SQL Query
HibernateException |
---|
Enable/disable automatic cache clearing from after transaction completion (for EJB3)
This method is deprecated.
use #getLoadQueryInfluencers instead
Set the current internal fetch profile for this session.
name | The internal fetch profile name to use |
---|