クラス SpringSessionContext
java.lang.ObjectSE
org.springframework.orm.hibernate5.SpringSessionContext
- 実装されたすべてのインターフェース:
SerializableSE
,CurrentSessionContext
Spring 管理の現在の
Session
を提供するために Spring の SessionFactoryUtils
に委譲する Hibernate 3.1 の CurrentSessionContext
インターフェースの実装。この CurrentSessionContext 実装は、"hibernate.current_session_context_class" プロパティを介してカスタム SessionFactory セットアップで指定することもでき、このクラスの完全修飾名を値として指定できます。
- 導入:
- 4.2
- 作成者:
- Juergen Hoeller
- 関連事項:
コンストラクターのサマリー
コンストラクター説明SpringSessionContext
(SessionFactoryImplementor sessionFactory) 指定された Hibernate SessionFactory の新しい SpringSessionContext を作成します。メソッドのサマリー
コンストラクターの詳細
SpringSessionContext
指定された Hibernate SessionFactory の新しい SpringSessionContext を作成します。- パラメーター:
sessionFactory
- 現在のセッションを提供する SessionFactory
メソッドの詳細
currentSession
現在のスレッドの Spring 管理セッションがある場合は、それを取得します。- 次で指定:
- インターフェース
CurrentSessionContext
のcurrentSession
- 例外:
HibernateException