|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.framework.jpa.impl.PersistenceUnitContextImpl
public class PersistenceUnitContextImpl
PersistenceUnitContext
の実装クラスです。
フィールドの概要 | |
---|---|
protected ConcurrentMap<Transaction,EntityManager> |
entityManagers
トランザクションをキー、 EntityManager を値とするマップ |
コンストラクタの概要 | |
---|---|
PersistenceUnitContextImpl()
|
メソッドの概要 | |
---|---|
EntityManager |
getEntityManager(Transaction tx)
指定されたトランザクションに関連付いた EntityManager を返します。 |
void |
registerEntityManager(Transaction tx,
EntityManager em)
指定されたトランザクションに関連付けて EntityManager を登録します。 |
void |
unregisterEntityManager(Transaction tx)
指定されたトランザクションに関連付けられた EntityManager の登録を取り消します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected ConcurrentMap<Transaction,EntityManager> entityManagers
EntityManager
を値とするマップ
コンストラクタの詳細 |
---|
public PersistenceUnitContextImpl()
メソッドの詳細 |
---|
public EntityManager getEntityManager(Transaction tx)
PersistenceUnitContext
の記述: EntityManager
を返します。
PersistenceUnitContext
内の getEntityManager
tx
- トランザクション
EntityManager
のコンポーネントpublic void registerEntityManager(Transaction tx, EntityManager em)
PersistenceUnitContext
の記述: EntityManager
を登録します。
PersistenceUnitContext
内の registerEntityManager
tx
- トランザクションem
- EntityManager
のコンポーネントpublic void unregisterEntityManager(Transaction tx)
PersistenceUnitContext
の記述: EntityManager
の登録を取り消します。
PersistenceUnitContext
内の unregisterEntityManager
tx
- トランザクション
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |