|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.extension.datasource.impl.DataSourceFactoryImpl
DataSourceFactory
の実装クラスです。
フィールドの概要 | |
protected S2Container |
container
S2コンテナです。 |
protected ThreadLocal |
selectableDataSourceName
動的なデータソース名を管理します。 |
コンストラクタの概要 | |
DataSourceFactoryImpl()
|
メソッドの概要 | |
S2Container |
getContainer()
|
DataSource |
getDataSource(String name)
データソースを返します。 |
protected String |
getDataSourceComponentName(String name)
データソースのコンポーネント名を返します。 |
String |
getDataSourceName(String name)
名前が設定されている場合は名前をそのまま返し、設定されていない場合は getSelectableDataSourceName() の結果を返します。 |
String |
getSelectableDataSourceName()
動的なデータソース名を返します。 |
void |
setContainer(S2Container container)
|
void |
setSelectableDataSourceName(String name)
動的なデータソース名を設定します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected ThreadLocal selectableDataSourceName
protected S2Container container
コンストラクタの詳細 |
public DataSourceFactoryImpl()
メソッドの詳細 |
public String getSelectableDataSourceName()
DataSourceFactory
の記述:
DataSourceFactory
内の getSelectableDataSourceName
public void setSelectableDataSourceName(String name)
DataSourceFactory
の記述: ThreadLocal
で管理されます。
DataSourceFactory
内の setSelectableDataSourceName
name
- データソース名public String getDataSourceName(String name)
DataSourceFactory
の記述: DataSourceFactory.getSelectableDataSourceName()
の結果を返します。
DataSourceFactory
内の getDataSourceName
name
- dao.nameのようなdaoの後ろのサブパッケージ名
public S2Container getContainer()
public void setContainer(S2Container container)
container
- S2コンテナpublic DataSource getDataSource(String name)
DataSourceFactory
の記述:
DataSourceFactory
内の getDataSource
name
- dao.nameのようなdaoの後ろのサブパッケージ名
protected String getDataSourceComponentName(String name)
name
- dao.nameのようなdaoの後ろのサブパッケージ名
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |